summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-08-06 13:40:31 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-08-06 13:40:31 (GMT)
commit3a451b1d1951b6f48c553e4cbc4b35ef4933cd2a (patch)
tree4d4522f846a9939ed0bdf37117cae385a5870ee7
parent9c5b61b21bae24bdfc168b5876dbe1396c28868a (diff)
downloadcpython-3a451b1d1951b6f48c553e4cbc4b35ef4933cd2a.zip
cpython-3a451b1d1951b6f48c553e4cbc4b35ef4933cd2a.tar.gz
cpython-3a451b1d1951b6f48c553e4cbc4b35ef4933cd2a.tar.bz2
In the altbininstall target, which is the first subtarget for "make install",
if we are running in an OSX framework enabled build directory, test that the framework infrastructure exists. This catches the very common error of doing "make install" in stead of "make frameworkinstall".
-rw-r--r--Makefile.pre.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 608f05e..dbde5a0 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -569,6 +569,12 @@ bininstall: altbininstall
# Install the interpreter with $(VERSION) affixed
# This goes into $(exec_prefix)
altbininstall: $(BUILDPYTHON)
+ @if test "$(PYTHONFRAMEWORKDIR)" != no-framework; then \
+ if test ! -f $(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current/Resources/Info.plist; then \
+ echo 'Framework build: use "make frameworkinstall" in stead of "make install"'; \
+ exit 1; \
+ fi; \
+ fi
@for i in $(BINDIR) $(LIBDIR); \
do \
if test ! -d $$i; then \
@@ -770,7 +776,7 @@ sharedinstall:
# automatically set prefix to the location deep down in the framework, so we
# only have to cater for the structural bits of the framework.
-frameworkinstall: install frameworkinfrastructureinstall
+frameworkinstall: frameworkinfrastructureinstall install
FRAMEWORKFINALDEST=$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)
frameworkinfrastructureinstall: $(LDLIBRARY)
@if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \