From 1c1b858f0fc15ce8380759a2b3e03f57b4073d50 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Fri, 5 Nov 2004 08:57:09 +0000 Subject: - 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 --- util/newconfig/config.g | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/util/newconfig/config.g b/util/newconfig/config.g index 09663aaa44..584c1b32c5 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -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): -- cgit v1.2.3