Changes Makefile generation so that recursive "make" calls read

"$(MAKE)" instead, as GNU make (or "gmake") is currently necessary to build.

Signed-off-by: Pierre Pronchery <khorben@defora.org>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3363 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Pierre Pronchery 2008-06-08 23:05:24 +00:00 committed by Stefan Reinauer
parent 38ee631aef
commit d63e0d041e
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ loader.o: loader.s
#------------------------------------------------- #-------------------------------------------------
bios: bios:
( cd ${BOCHS_B} ; make ) ( cd ${BOCHS_B} ; $(MAKE) )
sync sync
#------------------------------------------------- #-------------------------------------------------
@ -101,7 +101,7 @@ install:
clean: clean:
rm -rf *.o ${PAYLOAD} rm -rf *.o ${PAYLOAD}
(cd ${BOCHS_B} ; make clean ) (cd ${BOCHS_B} ; $(MAKE) clean )
distclean: clean distclean: clean
rm -rf ${BOCHS_C} rm -rf ${BOCHS_C}

View File

@ -2158,7 +2158,7 @@ def writemakefile(path):
for i, o in romimages.items(): for i, o in romimages.items():
file.write("%s/coreboot.rom:\n" % o.getname()) file.write("%s/coreboot.rom:\n" % o.getname())
file.write("\tif (cd %s; \\\n" % o.getname()) file.write("\tif (cd %s; \\\n" % o.getname())
file.write("\t\tmake coreboot.rom)\\\n") file.write("\t\t$(MAKE) coreboot.rom)\\\n")
file.write("\tthen true; else exit 1; fi;\n\n") file.write("\tthen true; else exit 1; fi;\n\n")
file.write("clean: ") file.write("clean: ")
for i in romimages.keys(): for i in romimages.keys():
@ -2166,7 +2166,7 @@ def writemakefile(path):
file.write("\n\n") file.write("\n\n")
for i, o in romimages.items(): for i, o in romimages.items():
file.write("%s-clean:\n" % o.getname()) file.write("%s-clean:\n" % o.getname())
file.write("\t(cd %s; make clean)\n\n" % o.getname()) file.write("\t(cd %s; $(MAKE) clean)\n\n" % o.getname())
for i in buildroms: for i in buildroms:
file.write("%s:" % i.name) file.write("%s:" % i.name)