]> granicus.if.org Git - python/commitdiff
Create the hardlink between python-3.2m and python-3.2 in altbininstall target
authorBarry Warsaw <barry@python.org>
Sat, 11 Dec 2010 21:32:01 +0000 (21:32 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 11 Dec 2010 21:32:01 +0000 (21:32 +0000)
instead of bininstall target so it shows up when you do 'make altinstall'.
Closes issue 10677.

Makefile.pre.in

index 67a74b90014a4201093532ef039944d424018a4f..4c7c28bc9cce57f9ec19b438a79f8aaa5daa1155 100644 (file)
@@ -836,6 +836,11 @@ altbininstall: $(BUILDPYTHON)
                fi; \
        done
        $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE)
+       -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE); \
+       then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
+       else true; \
+       fi
+       (cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE))
        if test -f $(LDLIBRARY); then \
                if test -n "$(DLLLIBRARY)" ; then \
                        $(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
@@ -853,11 +858,6 @@ bininstall: altbininstall
        then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON)3$(EXE); \
        else true; \
        fi
-       -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE); \
-       then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
-       else true; \
-       fi
-       (cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE))
        (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)3$(EXE))
        -rm -f $(DESTDIR)$(BINDIR)/python3-config
        -rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config