From: Jack Jansen Date: Wed, 2 Jun 2004 20:06:38 +0000 (+0000) Subject: Do an actual test for xcodebuild, in stead of relying on the user to X-Git-Tag: v2.4a1~296 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29eb8c315d23fd6a36a22be50ad4c1a229f94342;p=thirdparty%2FPython%2Fcpython.git Do an actual test for xcodebuild, in stead of relying on the user to uncomment the relevant section. --- diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile index 3c82a2429a36..e8d15297d0e9 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