Borrowed from Growl: Fix how our Release Makefile finds Xcode's global custom build directory.
authorPeter Hosey <hg@boredzo.org>
Tue, 02 Jun 2009 22:48:24 -0700
changeset 2456 aa9e171af640
parent 2455 8596de478b13
child 2457 70ed22781021
Borrowed from Growl: Fix how our Release Makefile finds Xcode's global custom build directory.
Release/Makefile
--- a/Release/Makefile	Tue Jun 02 22:47:45 2009 -0700
+++ b/Release/Makefile	Tue Jun 02 22:48:24 2009 -0700
@@ -76,7 +76,7 @@
 	BUILDFLAGS+="ADIUM_CFLAGS=-DBETA_RELEASE"
 endif
 
-PRODUCT_DIR=$(shell defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null)
+PRODUCT_DIR=$(shell defaults read com.apple.Xcode PBXApplicationwideBuildSettings 2> /dev/null > XcodeBuildSettings.plist && defaults read $PWD/XcodeBuildSettings SYMROOT 2> /dev/null; rm XcodeBuildSettings.plist)
 
 ifeq ($(strip $(PRODUCT_DIR)),)
 	ADIUM_BUILD_DIR=$(SRC_DIR)/build/$(BUILDSTYLE)