diff options
-rw-r--r-- | Mac/OSX/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile index 3c82a24..e8d1529 100644 --- a/Mac/OSX/Makefile +++ b/Mac/OSX/Makefile @@ -9,10 +9,12 @@ prefix=/Library/Frameworks/Python.framework/Versions/$(VERSION) LIBDEST=$(prefix)/lib/python$(VERSION) BUILDPYTHON=$(builddir)/python.exe DESTDIR= -# For 10.2: -#PBXBUILD=pbxbuild -# For 10.3: +# Test whether to use xcodebuild (preferred) or pbxbuild: +ifeq ($(shell ls /usr/bin/xcodebuild),/usr/bin/xcodebuild) PBXBUILD=xcodebuild +else +PBXBUILD=pbxbuild +endif # These are normally glimpsed from the previous set bindir=/usr/local/bin |