source: trunk/macosx/Makefile.am @ 3524

Last change on this file since 3524 was 3524, checked in by livings124, 15 years ago

trunk: update mac makefile

File size: 1.0 KB
Line 
1EXTRA_DIST = \
2    Sparkle.framework \
3    CTGradient \
4    UKKQueue \
5    TransmissionHelp \
6    Applescript \
7    Images \
8    Growl.framework \
9    English.lproj \
10    el.lproj \
11    es.lproj \
12    fr.lproj \
13    it.lproj \
14    ko.lproj \
15    ru.lproj \
16    nl.lproj
17
18# Use Xcode do make the actual build
19all:
20        @(cd .. && xcodebuild -alltargets -activeconfiguration | grep -v "^$$")
21clean:
22        @(cd .. && xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$")
23
24define PACKAGE_RULE1
25        $(RM) tmp "Transmission $(VERSION_PACKAGE)" \
26          Transmission-$(VERSION_PACKAGE).dmg
27        mkdir -p tmp
28        cp -R macosx/Transmission.app tmp/
29endef
30define PACKAGE_RULE2
31        mv tmp "Transmission $(VERSION_PACKAGE)"
32        hdiutil create -format UDZO -imagekey zlib-level=9 -srcfolder \
33          "Transmission $(VERSION_PACKAGE)" Transmission-$(VERSION_PACKAGE).dmg
34        rm -rf "Transmission $(VERSION_PACKAGE)"
35endef
36
37package:
38        $(PACKAGE_RULE1)
39        $(PACKAGE_RULE2)
40
41package-release:
42        $(PACKAGE_RULE1)
43        strip -S tmp/Transmission.app/Contents/MacOS/Transmission
44        $(PACKAGE_RULE2)
Note: See TracBrowser for help on using the repository browser.