Skip to content

Commit 29eb8c3

Browse files
committed
Do an actual test for xcodebuild, in stead of relying on the user to
uncomment the relevant section.
1 parent 9f5f056 commit 29eb8c3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Mac/OSX/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ prefix=/Library/Frameworks/Python.framework/Versions/$(VERSION)
99
LIBDEST=$(prefix)/lib/python$(VERSION)
1010
BUILDPYTHON=$(builddir)/python.exe
1111
DESTDIR=
12-
# For 10.2:
13-
#PBXBUILD=pbxbuild
14-
# For 10.3:
12+
# Test whether to use xcodebuild (preferred) or pbxbuild:
13+
ifeq ($(shell ls /usr/bin/xcodebuild),/usr/bin/xcodebuild)
1514
PBXBUILD=xcodebuild
15+
else
16+
PBXBUILD=pbxbuild
17+
endif
1618

1719
# These are normally glimpsed from the previous set
1820
bindir=/usr/local/bin

0 commit comments

Comments
 (0)