From eddb8b7958db32ad2af6e17b90f21ced843a44e0 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 2 Jun 2004 20:07:42 +0000 Subject: [PATCH] Backport of 1.54: Do an actual test for xcodebuild, in stead of relying on the user to uncomment the relevant section. --- Mac/OSX/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.47.3