Makefile
author Zachary West <zacw@adium.im>
Fri Oct 30 21:21:39 2009 -0400 (2009-10-30)
changeset 2692 e2f345a203d6
parent 2197 c13b6d51b354
child 2711 01fa5ff47acb
permissions -rw-r--r--
Combine WebKit, Twitter and normal Localizable.strings into one; they're not in separate plugins. Fixes #13276.
David@0
     1
PREFIX?=
David@0
     2
BUILD_DIR?=$(shell defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null)
David@0
     3
David@0
     4
ifeq ($(strip $(BUILD_DIR)),)
David@0
     5
	BUILD_DIR=build
David@0
     6
endif
David@0
     7
Peter@59
     8
DEFAULT_BUILDCONFIGURATION=Release-Debug
David@0
     9
David@0
    10
BUILDCONFIGURATION?=$(DEFAULT_BUILDCONFIGURATION)
David@0
    11
David@0
    12
CP=ditto --rsrc
David@0
    13
RM=rm
David@0
    14
David@0
    15
.PHONY: all adium clean localizable-strings latest test astest install
David@0
    16
David@0
    17
adium:
catfish@1868
    18
	xcodebuild -project Adium.xcodeproj -configuration $(BUILDCONFIGURATION) CFLAGS="$(ADIUM_CFLAGS)" build
David@0
    19
David@0
    20
test:
David@0
    21
	xcodebuild -project Adium.xcodeproj -configuration $(BUILDCONFIGURATION) CFLAGS="$(ADIUM_CFLAGS)" -target "Unit tests" build
David@0
    22
astest:
David@0
    23
	osascript unittest\ runner.applescript | tr '\r' '\n'
David@0
    24
David@0
    25
install:
David@0
    26
	cp -R build/$(BUILDCONFIGURATION)/Adium.app ~/Applications/
David@0
    27
David@0
    28
clean:
David@0
    29
	xcodebuild -project Adium.xcodeproj -configuration $(BUILDCONFIGURATION)  clean
David@0
    30
David@0
    31
localizable-strings:
David@0
    32
	mkdir tmp || true
David@0
    33
	mv "Plugins/Purple Service" tmp
David@0
    34
	mv "Plugins/WebKit Message View" tmp
zacw@2197
    35
	mv "Plugins/Twitter Plugin" tmp
zacw@2692
    36
	genstrings -o Resources/en.lproj -s AILocalizedString Source/*.m Source/*.h Plugins/*/*.h Plugins/*/*.m Plugins/*/*/*.h Plugins/*/*/*.m tmp/WebKit\ Message\ View/*.h tmp/WebKit\ Message\ View/*.m tmp/Twitter\ Plugin/*.h tmp/Twitter\ Plugin/*.m
David@0
    37
	genstrings -o tmp/Purple\ Service/en.lproj -s AILocalizedString tmp/Purple\ Service/*.h tmp/Purple\ Service/*.m
David@0
    38
	genstrings -o Frameworks/AIUtilities\ Framework/Resources/en.lproj -s AILocalizedString Frameworks/AIUtilities\ Framework/Source/*.h Frameworks/AIUtilities\ Framework/Source/*.m
David@0
    39
	genstrings -o Frameworks/Adium\ Framework/Resources/en.lproj -s AILocalizedString Frameworks/Adium\ Framework/Source/*.m Frameworks/Adium\ Framework/Source/*.h
David@0
    40
	mv "tmp/Purple Service" Plugins
David@0
    41
	mv "tmp/WebKit Message View" Plugins
zacw@2197
    42
	mv "tmp/Twitter Plugin" Plugins
David@0
    43
	rmdir tmp || true
David@0
    44
David@0
    45
latest:
zacwest@1809
    46
	hg pull -u
David@0
    47
	make adium