- In the makefile header get the name of the Makefile correct

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1752 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman
2004-11-05 08:50:54 +00:00
parent 0e99655670
commit c149210462
2 changed files with 18 additions and 16 deletions

View File

@@ -1902,8 +1902,8 @@ parser Config:
#=============================================================================
def writemakefileheader(file, fname):
file.write("# File: %s is autogenerated\n" % fname)
file.write("Makefile: %s %s\n"
% (os.path.abspath(sys.argv[0]), top_config_file))
file.write("%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]))