summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-02-12 21:30:53 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-02-12 21:30:53 (GMT)
commit246debbbc276a7025e48bddb2e6fecafbcb9f522 (patch)
treec9e861311a29898ea84bed94d3dafb8efb5bc745 /Makefile.pre.in
parentb48d198c129c70a6ab8768fb243072997c6cfdf6 (diff)
downloadcpython-246debbbc276a7025e48bddb2e6fecafbcb9f522.zip
cpython-246debbbc276a7025e48bddb2e6fecafbcb9f522.tar.gz
cpython-246debbbc276a7025e48bddb2e6fecafbcb9f522.tar.bz2
Two OSX fixes related to switching Python versions in an existing sourcetree:
- Create the Python.framework/Versions/$(VERSION) dir if it doesn't exist - Override existing symlinks in the framework.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index a966931..f964e41 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -347,6 +347,7 @@ libpython$(VERSION).so: $(LIBRARY)
# This rule is here for OPENSTEP/Rhapsody/MacOSX
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): $(LIBRARY) $(PYTHONFRAMEWORKDIR)
+ $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
-framework System @LIBTOOL_CRUFT@
@@ -758,10 +759,10 @@ $(PYTHONFRAMEWORKDIR): $(RESSRCDIR)/Info.plist \
$(INSTALL_DATA) $(RESSRCDIR)/version.plist $(FRAMEWORKDEST)/Resources/version.plist
$(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
$(FRAMEWORKDEST)/Resources/English.lproj/InfoPlist.strings
- $(LN) -fs $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
- $(LN) -fs Versions/Current/Python $(PYTHONFRAMEWORKDIR)/Python
- $(LN) -fs Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
- $(LN) -fs Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
+ $(LN) -fsh $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
+ $(LN) -fsh Versions/Current/Python $(PYTHONFRAMEWORKDIR)/Python
+ $(LN) -fsh Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
+ $(LN) -fsh Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
# On install, we re-make the framework
# structure in the install location, /Library/Frameworks/ or the argument to
@@ -789,10 +790,10 @@ frameworkinfrastructureinstall: $(LDLIBRARY)
$(INSTALL_DATA) $(RESSRCDIR)/version.plist $(FRAMEWORKFINALDEST)/Resources/version.plist
$(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
$(FRAMEWORKFINALDEST)/Resources/English.lproj/InfoPlist.strings
- $(LN) -fs $(VERSION) $(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
- $(LN) -fs Versions/Current/Python $(PYTHONFRAMEWORKINSTALLDIR)/Python
- $(LN) -fs Versions/Current/Headers $(PYTHONFRAMEWORKINSTALLDIR)/Headers
- $(LN) -fs Versions/Current/Resources $(PYTHONFRAMEWORKINSTALLDIR)/Resources
+ $(LN) -fsh $(VERSION) $(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
+ $(LN) -fsh Versions/Current/Python $(PYTHONFRAMEWORKINSTALLDIR)/Python
+ $(LN) -fsh Versions/Current/Headers $(PYTHONFRAMEWORKINSTALLDIR)/Headers
+ $(LN) -fsh Versions/Current/Resources $(PYTHONFRAMEWORKINSTALLDIR)/Resources
$(INSTALL_DATA) $(LDLIBRARY) $(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
# Build the toplevel Makefile