Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 127e56e

Browse files
committed
When frameworks are not enabled don't put an empty target in the Makefile.
Older make's can apparently choke on this.
1 parent dc795b8 commit 127e56e

3 files changed

Lines changed: 419 additions & 405 deletions

File tree

Makefile.pre.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ libainstall: all
675675
fi; \
676676
done
677677
@if test -d $(LDLIBRARY); then :; else \
678-
if test -z "$(PYTHONFRAMEWORKDIR)"; then \
678+
if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
679679
$(INSTALL_DATA) $(LDLIBRARY) $(LIBPL)/$(LDLIBRARY) ; \
680680
$(RANLIB) $(LIBPL)/$(LDLIBRARY) ; \
681681
else \
@@ -736,9 +736,9 @@ RESSRCDIR=$(srcdir)/Mac/OSXResources/framework
736736
$(PYTHONFRAMEWORKDIR): $(RESSRCDIR)/Info.plist \
737737
$(RESSRCDIR)/version.plist \
738738
$(RESSRCDIR)/English.lproj/InfoPlist.strings
739-
@if test -z "$(PYTHONFRAMEWORKDIR)"; then \
739+
@if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
740740
echo Not configured with --enable-framework; \
741-
exit; \
741+
exit 1; \
742742
else true; \
743743
fi
744744
$(INSTALL) -d -m $(DIRMODE) $(FRAMEWORKDEST)/Resources/English.lproj
@@ -760,9 +760,9 @@ $(PYTHONFRAMEWORKDIR): $(RESSRCDIR)/Info.plist \
760760
frameworkinstall: install frameworkinfrastructureinstall
761761
FRAMEWORKFINALDEST=$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)
762762
frameworkinfrastructureinstall: $(LDLIBRARY)
763-
@if test -z "$(PYTHONFRAMEWORKDIR)"; then \
763+
@if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
764764
echo Not configured with --enable-framework; \
765-
exit; \
765+
exit 1; \
766766
else true; \
767767
fi
768768
@for i in $(FRAMEWORKFINALDEST)/Resources/English.lproj $(FRAMEWORKFINALDEST)/lib; do\

0 commit comments

Comments
 (0)