summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-29 14:18:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-29 14:18:18 (GMT)
commit0cd0e656ef6995c607e41c9283b031be8dcd3b7c (patch)
treec357b9ca60b5bb615cadd9ae2ab188c5c5eba7ab /Mac
parentab10ce6c6b4babc9beaea5270bae32346337f518 (diff)
downloadcpython-0cd0e656ef6995c607e41c9283b031be8dcd3b7c.zip
cpython-0cd0e656ef6995c607e41c9283b031be8dcd3b7c.tar.gz
cpython-0cd0e656ef6995c607e41c9283b031be8dcd3b7c.tar.bz2
Added target "installunixprograms" which installs python and pythonw in
/usr/local/bin (referring to the framework-based interpreter and Python.app). Added target symlinkmacsubtree to aid in debugging.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/OSX/Makefile24
1 files changed, 22 insertions, 2 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
index 9fb1420..385e6ed 100644
--- a/Mac/OSX/Makefile
+++ b/Mac/OSX/Makefile
@@ -2,12 +2,19 @@ PYTHONBUILDDIR=../..
INSTALLDIR=/Library/Frameworks/Python.framework/Versions/Current
APPINSTALLDIR=/Applications/Python.app
+# Variables for installing the "normal" unix binaries
+UNIXBINDIR=/usr/local/bin
+INSTALLED_PYTHON=$(INSTALLDIR)/bin/python
+INSTALLED_PYTHONW=$(APPINSTALLDIR)/Contents/MacOS/python
+
# Items more-or-less copied from the main Makefile
DIRMODE=755
INSTALL=/usr/bin/install -c
+INSTALL_SYMLINK=/usr/bin/install -l as
INSTALL_PROGRAM=${INSTALL}
INSTALL_SCRIPT= ${INSTALL_PROGRAM}
INSTALL_DATA= ${INSTALL} -m 644
+STRIPFLAG=-s
OPT=-g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic
INCLUDES=-I$(PYTHONBUILDDIR) -I$(PYTHONBUILDDIR)/Include \
-I$(PYTHONBUILDDIR)/Mac/Include
@@ -71,7 +78,7 @@ install: pythonforbundle
esac; \
done; \
done
- $(INSTALL_PROGRAM) pythonforbundle $(APPINSTALLDIR)/Contents/MacOS/python
+ $(INSTALL_PROGRAM) $(STRIPFLAG) pythonforbundle $(APPINSTALLDIR)/Contents/MacOS/python
# Create a temporary version of the resources here
$(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/dialogs.rsrc dialogs.rsrc
$(PYTHON) $(RFCONVERTER) -r $(RESOURCEDIR)/errors.rsrc errors.rsrc
@@ -179,5 +186,18 @@ installmacsubtree:
done
@echo '** Copy the contents of sample_sitecustomize.py (or similar code) into'
- @echo '**' $(INSTALLDIR)/lib/python2.2/sitecustomize.py
+ @echo '**' $(INSTALLDIR)/lib/python2.3/sitecustomize.py
+
+# Put symlinks "python" and "pythonw" in the standard place
+installunixprograms: $(INSTALLED_PYTHON) pythonw.sh
+ $(INSTALL) -d $(UNIXBINDIR)
+ $(INSTALL_SYMLINK) $(INSTALLED_PYTHON) $(UNIXBINDIR)/python
+ $(INSTALL) pythonw.sh $(UNIXBINDIR)/pythonw
+# This is for development purposes: put a symlink to the Mac source subtree in the
+# framework
+symlinkmacsubtree:
+ ln -sf `cd $(PYTHONBUILDDIR)/Mac; pwd` $(INSTALLDIR)/Mac
+
+ @echo '** Copy the contents of sample_sitecustomize.py (or similar code) into'
+ @echo '**' $(INSTALLDIR)/lib/python2.3/sitecustomize.py