diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile index 3c82a2429a3..e8d15297d0e 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