From: Jack Jansen Date: Wed, 2 Jun 2004 20:07:42 +0000 (+0000) Subject: Backport of 1.54: X-Git-Tag: v2.3.5c1~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eddb8b7958db32ad2af6e17b90f21ced843a44e0;p=thirdparty%2FPython%2Fcpython.git Backport of 1.54: 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 469cd8ee0c2b..a1eeed1f6339 100644 --- a/Mac/OSX/Makefile +++ b/Mac/OSX/Makefile @@ -10,10 +10,12 @@ 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