mirror of https://github.com/python/cpython.git
Reindented, removed tabs.
Also added simple "clean" target (removes *.o and executable).
This commit is contained in:
parent
3c51cf2b69
commit
541e783664
|
@ -10,7 +10,7 @@ def makemakefile(outfp, makevars, files, target):
|
|||
keys.sort()
|
||||
for key in keys:
|
||||
outfp.write("%s=%s\n" % (key, makevars[key]))
|
||||
outfp.write("\nall: %s\n" % target)
|
||||
outfp.write("\nall: %s\n\n" % target)
|
||||
|
||||
deps = []
|
||||
for i in range(len(files)):
|
||||
|
@ -25,3 +25,9 @@ def makemakefile(outfp, makevars, files, target):
|
|||
|
||||
outfp.write("\n%s: %s\n" % (target, string.join(deps)))
|
||||
outfp.write("\t$(CC) %s -o %s\n" % (string.join(files), target))
|
||||
|
||||
outfp.write("\nclean:\n\t-rm -f *.o %s\n" % target)
|
||||
|
||||
# Local Variables:
|
||||
# indent-tabs-mode: nil
|
||||
# End:
|
||||
|
|
Loading…
Reference in New Issue