summaryrefslogtreecommitdiffstats
path: root/contrib/Makefile
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-04-18 14:42:01 +0000
committerjbrjake <[email protected]>2008-04-18 14:42:01 +0000
commit500e609ee627eeda225713b641338bc1567b6b70 (patch)
treebd085504f8a6d17c4d99c9415831f816b3b9f221 /contrib/Makefile
parent245cc29464469372ac1e469ab7c93e5d7022e56b (diff)
Fixes make building in OS X:
- Switches default (snapshot) make target to use the Deployment Xcode target - Makes it possible to jam contribs using make in OS X like is done in Linux - This means no universal binaries from make, unless "make release" is used. That's the only time it uses the contrib download script. The snapshot target builds contribs locally. To sum up: this now means that on a Mac, using: make ....should be functionally equivalent to: make clean; ./configure; ./jam git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1430 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/Makefile')
-rw-r--r--contrib/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/Makefile b/contrib/Makefile
index 33baec42c..24d6ee243 100644
--- a/contrib/Makefile
+++ b/contrib/Makefile
@@ -5,8 +5,16 @@ SYSTEM = $(shell uname -s)
# Special case for Mac OS X: everything is handled from the Xcode project
ifeq ($(SYSTEM),Darwin)
-all:
- ( echo "MacOs X doesn't use this makefile, to build the contrib please use ../jam" ; false )
+all: .contrib
+
+.contrib:
+ ( cd .. ; ./configure ; cd contrib ; cp -f ../config.jam . ; ../jam )
+
+clean:
+ ( echo "Do a make mrproper to remove the contrib libraries )
+
+mrproper:
+ (rm -rf lib ; rm -rf include )
endif