- Put the rule for the Makefile at the bottom of the makefile!

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1753 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman 2004-11-05 08:57:09 +00:00
parent c149210462
commit 1c1b858f0f
1 changed files with 7 additions and 1 deletions

View File

@ -1902,7 +1902,9 @@ parser Config:
#=============================================================================
def writemakefileheader(file, fname):
file.write("# File: %s is autogenerated\n" % fname)
file.write("%s: %s %s\n"
def writemakefilefooter(file, fname):
file.write("\n\n%s: %s %s\n"
% (os.path.basename(fname), os.path.abspath(sys.argv[0]), top_config_file))
file.write("\t(cd %s ; %s %s %s)\n\n"
% (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2]))
@ -1919,6 +1921,7 @@ def writemakefilesettings(path):
writemakefileheader(file, filename)
file.write("TOP:=%s\n" % (treetop))
file.write("TARGET_DIR:=%s\n" % target_dir)
writemakefilefooter(file, filename)
file.close()
def writeimagesettings(image):
@ -1951,6 +1954,7 @@ def writeimagesettings(image):
for o in exported:
file.write("export VARIABLES += %s\n" % o.name)
file.write("\n")
writemakefilefooter(file,filename)
file.close()
# write the romimage makefile
@ -2107,6 +2111,7 @@ def writeimagemakefile(image):
file.write("\n")
for i in m.actions:
file.write("\t%s\n" % i)
writemakefilefooter(file, makefilepath)
file.close()
#
@ -2151,6 +2156,7 @@ def writemakefile(path):
file.write(" %s-clean" % i)
file.write("\n\n")
writemakefilefooter(file, makefilepath)
file.close()
def writeinitincludes(image):