Skip to contentSkip to conversation

base.bbclass: add GNUmakefile to the list of possible makefile names

PATCH Applied Ross Burton 3 participants 3 messages Jul 13, 2012 – Jul 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base.bbclass: add GNUmakefile to the list of possible makefile names

---
 meta/classes/base.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/base.bbclass +1 -1
index 08065c6..f691799 100644
@@ -280,7 +280,7 @@ base_do_configure() {
 addtask compile after do_configure
 do_compile[dirs] = "${S} ${B}"
 base_do_compile() {
-	if [ -e Makefile -o -e makefile ]; then
+	if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
 		oe_runmake || die "make failed"
 	else
 		bbnote "nothing to compile"
Signature · 1 line
1.7.10
#1 lore raw
Quoted 5 lines · Ross Burton

+ if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
oe_runmake || die "make failed"
else
bbnote "nothing to compile"

may be convert it into case .. esac ? while you are at it

Applied
#2 lore raw
In reply to Ross Burton
Quoted 11 lines · Ross Burton
---
  meta/classes/base.bbclass |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/base.bbclass +0 -0
index 08065c6..f691799 100644

meta/classes/base.bbclass base_do_configure() { · line 286

Quoted 8 lines
meta/classes/base.bbclass +1 -1
@@ -280,7 +280,7 @@ base_do_configure() {
  addtask compile after do_configure
  do_compile[dirs] = "${S} ${B}"
  base_do_compile() {
-	if [ -e Makefile -o -e makefile ]; then
+	if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
  		oe_runmake || die "make failed"
  	else
  		bbnote "nothing to compile"

Merged into OE-Core

Thanks
Sau!