diff options
author | Eric Biederman <ebiederm@xmission.com> | 2004-11-05 08:57:09 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2004-11-05 08:57:09 +0000 |
commit | 1c1b858f0fc15ce8380759a2b3e03f57b4073d50 (patch) | |
tree | 60e2835cc8a58dc48de1e100a6bddfe9b9b0dfee | |
parent | c1492104629fdd61419887636a3c1ed9a280ecce (diff) |
- 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
-rw-r--r-- | util/newconfig/config.g | 8 |
1 files changed, 7 insertions, 1 deletions
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): |