summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-03-07 05:10:00 (GMT)
committerGuido van Rossum <guido@python.org>1998-03-07 05:10:00 (GMT)
commit2addd2a6dacea4d02bba084b1569f772ca2d0fc3 (patch)
treeb69c07c9a387c0cd8d88252cfaa17543a7be3ef2 /Tools/freeze
parentcef85a29f73208aa7f9e4576ef56322c7c98c915 (diff)
downloadcpython-2addd2a6dacea4d02bba084b1569f772ca2d0fc3.zip
cpython-2addd2a6dacea4d02bba084b1569f772ca2d0fc3.tar.gz
cpython-2addd2a6dacea4d02bba084b1569f772ca2d0fc3.tar.bz2
Add quotes around some variable definitions; add a "clean" target.
Diffstat (limited to 'Tools/freeze')
-rw-r--r--Tools/freeze/winmakemakefile.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/Tools/freeze/winmakemakefile.py b/Tools/freeze/winmakemakefile.py
index e9b391d..dde241b 100644
--- a/Tools/freeze/winmakemakefile.py
+++ b/Tools/freeze/winmakemakefile.py
@@ -25,10 +25,11 @@ def makemakefile(outfp, vars, files, target):
def realwork(vars, files, target):
print "# Makefile for Windows (NT or 95) generated by freeze.py script"
print
- print "target =", target
- print "pythonhome =", vars['prefix']
+ print 'target = %s' % target
+ print 'pythonhome = "%s"' % vars['prefix']
# XXX The following line is fishy and may need manual fixing
- print "pythonlib =", vars['exec_prefix'] + "/pcbuild/release/python15.lib"
+ print 'pythonlib = "%s"' % (vars['exec_prefix'] +
+ "/pcbuild/release/python15.lib")
print "subsystem =", vars['subsystem']
print
print "all: $(target).exe"
@@ -39,11 +40,11 @@ def realwork(vars, files, target):
base = os.path.basename(file)
base, ext = os.path.splitext(base)
objects.append(base + ".obj")
- print "%s.obj: %s" % (base, file)
+ print '%s.obj: "%s"' % (base, file)
print "\t$(CC) -c $(cdl)",
print "-I$(pythonhome)/Include -I$(pythonhome)/PC \\"
print "\t\t$(cflags) $(cdebug) $(cinclude) \\"
- print "\t\t", file
+ print '\t\t"%s"' % file
print
print "$(target).exe:",
@@ -54,6 +55,10 @@ def realwork(vars, files, target):
print "\\"
print "\t\t$(pythonlib) $(lcustom) shell32.lib comdlg32.lib wsock32.lib \\"
print "\t\t-subsystem:$(subsystem) $(resources)"
+ print
+ print "clean:"
+ print "\t\t-rm *.obj"
+ print "\t\t-rm $(target).exe"
# Local Variables:
# indent-tabs-mode: nil