When frameworks are not enabled don't put an empty target in the Makefile.
Older make's can apparently choke on this.
diff --git a/Makefile.pre.in b/Makefile.pre.in
index d872267..67446cd 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -675,7 +675,7 @@
fi; \
done
@if test -d $(LDLIBRARY); then :; else \
- if test -z "$(PYTHONFRAMEWORKDIR)"; then \
+ if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
$(INSTALL_DATA) $(LDLIBRARY) $(LIBPL)/$(LDLIBRARY) ; \
$(RANLIB) $(LIBPL)/$(LDLIBRARY) ; \
else \
@@ -736,9 +736,9 @@
$(PYTHONFRAMEWORKDIR): $(RESSRCDIR)/Info.plist \
$(RESSRCDIR)/version.plist \
$(RESSRCDIR)/English.lproj/InfoPlist.strings
- @if test -z "$(PYTHONFRAMEWORKDIR)"; then \
+ @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
echo Not configured with --enable-framework; \
- exit; \
+ exit 1; \
else true; \
fi
$(INSTALL) -d -m $(DIRMODE) $(FRAMEWORKDEST)/Resources/English.lproj
@@ -760,9 +760,9 @@
frameworkinstall: install frameworkinfrastructureinstall
FRAMEWORKFINALDEST=$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)
frameworkinfrastructureinstall: $(LDLIBRARY)
- @if test -z "$(PYTHONFRAMEWORKDIR)"; then \
+ @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
echo Not configured with --enable-framework; \
- exit; \
+ exit 1; \
else true; \
fi
@for i in $(FRAMEWORKFINALDEST)/Resources/English.lproj $(FRAMEWORKFINALDEST)/lib; do\