Use initialize, not load, wherever possible.
[adiumx.git] / Makefile
blobbfeb9e45c4871dc62e97163cc7352783db99b654
1 PREFIX?=
2 BUILD_DIR?=$(shell defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null)
4 ifeq ($(strip $(BUILD_DIR)),)
5 BUILD_DIR=build
6 endif
8 DEFAULT_BUILDCONFIGURATION=Deployment-Debug
10 BUILDCONFIGURATION?=$(DEFAULT_BUILDCONFIGURATION)
12 CP=ditto --rsrc
13 RM=rm
15 .PHONY: all adium clean localizable-strings latest
17 adium:
18 xcodebuild -project Adium.xcodeproj -configuration $(BUILDCONFIGURATION) CFLAGS="$(ADIUM_CFLAGS)" build
20 #install:
21 # cp -R build/Adium.app ~/Applications/
22 # cp -R build/AIUtilities.framework ~/Library/Frameworks/
24 clean:
25 xcodebuild -project Adium.xcodeproj -configuration $(BUILDCONFIGURATION) clean
28 localizable-strings:
29 mkdir tmp || true
30 mv "Plugins/Purple Service" tmp
31 mv "Plugins/WebKit Message View" tmp
32 genstrings -o Resources/en.lproj -s AILocalizedString Source/*.m Source/*.h Plugins/*/*.h Plugins/*/*.m Plugins/*/*/*.h Plugins/*/*/*.m
33 genstrings -o tmp/Purple\ Service/en.lproj -s AILocalizedString tmp/Purple\ Service/*.h tmp/Purple\ Service/*.m
34 genstrings -o tmp/WebKit\ Message\ View/en.lproj -s AILocalizedString tmp/WebKit\ Message\ View/*.h tmp/WebKit\ Message\ View/*.m
35 genstrings -o Frameworks/AIUtilities\ Framework/Resources/en.lproj -s AILocalizedString Frameworks/AIUtilities\ Framework/Source/*.h Frameworks/AIUtilities\ Framework/Source/*.m
36 genstrings -o Frameworks/Adium\ Framework/Resources/en.lproj -s AILocalizedString Frameworks/Adium\ Framework/Source/*.m Frameworks/Adium\ Framework/Source/*.h
37 mv "tmp/Purple Service" Plugins
38 mv "tmp/WebKit Message View" Plugins
39 rmdir tmp || true
41 latest:
42 svn up
43 make adium