diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-25 21:04:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-25 21:04:19 (GMT) |
commit | f4841e2df7e2c3ccf7e5debc9423e0d8ee271bb4 (patch) | |
tree | 3271d472023b906a9e16c412fcf9ae388f1f8b34 /Makefile.pre.in | |
parent | 5859b869a3f2aff7adf4f1795aeb86e1aa07676b (diff) | |
download | cpython-f4841e2df7e2c3ccf7e5debc9423e0d8ee271bb4.zip cpython-f4841e2df7e2c3ccf7e5debc9423e0d8ee271bb4.tar.gz cpython-f4841e2df7e2c3ccf7e5debc9423e0d8ee271bb4.tar.bz2 |
fix some issues with install and altinstall #5818
1. fullinstall should install 'python'
2. remove link targets if already exist
3. make python3-config
4. install the man in altinstall
5. $(EXE) consistency
Patch by Larry Hastings
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index abf124c..c1fe3a7 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -746,20 +746,20 @@ memtest: all platform -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) -# Install everything -fullinstall: @FRAMEWORKINSTALLFIRST@ altinstall bininstall maninstall @FRAMEWORKINSTALLLAST@ +# Install everything, and install Python 3 to "python" +fullinstall: @FRAMEWORKINSTALLFIRST@ altinstall bininstall @FRAMEWORKINSTALLLAST@ -# "make install" is an alias for "make altinstall" since we never want to -# overwrite Python 2.x. +# "make install" is an alias for "make altinstall" since we don't want to +# overwrite Python 2.x by default. install: altinstall @echo "* Note: not installed as 'python'." @echo "* Use 'make fullinstall' to install as 'python'." @echo "* However, 'make fullinstall' is discouraged," @echo "* as it will clobber your Python 2.x installation." -# Install almost everything without disturbing previous versions +# Install almost everything without disturbing 2.x versions altinstall: @FRAMEWORKALTINSTALLFIRST@ altbininstall libinstall inclinstall libainstall \ - sharedinstall oldsharedinstall @FRAMEWORKALTINSTALLLAST@ + sharedinstall oldsharedinstall maninstall @FRAMEWORKALTINSTALLLAST@ # Install shared libraries enabled by Setup DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED) @@ -785,10 +785,11 @@ $(DESTSHARED): # Install the interpreter (by creating a hard link to python$(VERSION)) bininstall: altbininstall - -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \ - then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \ + -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(EXE); \ + then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(EXE); \ else true; \ fi + (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)$(EXE)) -rm -f $(DESTDIR)$(BINDIR)/python-config (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config) @@ -815,7 +816,13 @@ altbininstall: $(BUILDPYTHON) fi; \ else true; \ fi - (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)3) + -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)3$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)3$(EXE); \ + then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON)3$(EXE); \ + else true; \ + fi + (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)3$(EXE)) + -rm -f $(DESTDIR)$(BINDIR)/python3-config + (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config) # Install the manual page maninstall: |