summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-11-27 19:38:53 (GMT)
committerGuido van Rossum <guido@python.org>1996-11-27 19:38:53 (GMT)
commitbec74843de052a3d0d51e44173e026ef9800914f (patch)
treef16b7a38e8ac074c72156dd2bee166652cc51e51 /Misc
parent47427674f6790675d3f44a30b83c84828aa2584e (diff)
downloadcpython-bec74843de052a3d0d51e44173e026ef9800914f.zip
cpython-bec74843de052a3d0d51e44173e026ef9800914f.tar.gz
cpython-bec74843de052a3d0d51e44173e026ef9800914f.tar.bz2
Added note about "boot" implying "clobber".
Added definition TARGET=python for more flexibility.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/Makefile.pre.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/Misc/Makefile.pre.in b/Misc/Makefile.pre.in
index 32e59d4..cda9685 100644
--- a/Misc/Makefile.pre.in
+++ b/Misc/Makefile.pre.in
@@ -50,6 +50,10 @@
# where <prefix> is the prefix used to install Python for installdir
# (and possibly similar for exec_installdir=<exec_prefix>).
+# Note: "make boot" implies "make clobber" -- it assumes that when you
+# bootstrap you may have changed platforms so it removes all previous
+# output files.
+
# If you are building your extension as a shared library (your
# Setup.in file starts with *shared*), run "make" or "make sharedmods"
# to build the shared library files. If you are building a statically
@@ -86,6 +90,9 @@ VPATH= .
# (Static) build target
TARGET= python
+# Installed python binary (used only by boot target)
+PYTHON= python
+
# Add more -I and -D options here
CFLAGS= $(OPT) -I$(INCLUDEPY) -I$(LIBPL) $(DEFS)
@@ -249,9 +256,9 @@ sedscript: $(MAKEFILE)
# Bootstrap target
boot: clobber
- VERSION=`python -c "import sys; print sys.version[:3]"`; \
- installdir=`python -c "import sys; print sys.prefix"`; \
- exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
+ VERSION=`$(PYTHON) -c "import sys; print sys.version[:3]"`; \
+ installdir=`$(PYTHON) -c "import sys; print sys.prefix"`; \
+ exec_installdir=`$(PYTHON) -c "import sys; print sys.exec_prefix"`; \
$(MAKE) -f $(srcdir)/Makefile.pre.in VPATH=$(VPATH) srcdir=$(srcdir) \
VERSION=$$VERSION \
installdir=$$installdir \
@@ -264,7 +271,7 @@ clean:
# Handy target to remove everything that is easily regenerated
clobber: clean
- -rm -f *.a tags TAGS config.c Makefile.pre python sedscript
+ -rm -f *.a tags TAGS config.c Makefile.pre $(TARGET) sedscript
-rm -f *.so *.sl so_locations