]> granicus.if.org Git - python/commitdiff
Do an actual test for xcodebuild, in stead of relying on the user to
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 2 Jun 2004 20:06:38 +0000 (20:06 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 2 Jun 2004 20:06:38 +0000 (20:06 +0000)
uncomment the relevant section.

Mac/OSX/Makefile

index 3c82a2429a362f82b7c4ea9c1e90968a1431e2f7..e8d15297d0e9fe2640a23107f425cfac4cedcf16 100644 (file)
@@ -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