]> granicus.if.org Git - python/commitdiff
#1095: ln -f doesn't work portably, fix in Makefile.
authorGeorg Brandl <georg@python.org>
Fri, 7 Sep 2007 20:10:49 +0000 (20:10 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 7 Sep 2007 20:10:49 +0000 (20:10 +0000)
Makefile.pre.in

index bafeb2baaa87baf31fde0f0ac4ca16fd916e482a..326d04b1985a54e4bb1b53edb5f077cc4dbfef81 100644 (file)
@@ -660,7 +660,8 @@ bininstall: altbininstall
        else true; \
        fi
        (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
-       (cd $(DESTDIR)$(BINDIR); $(LN) -sf python$(VERSION)-config python-config)
+       -rm -f $(DESTDIR)$(BINDIR)/python-config
+       (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
 
 # Install the interpreter with $(VERSION) affixed
 # This goes into $(exec_prefix)