source: trunk/macosx/Makefile.am @ 2572

Last change on this file since 2572 was 2572, checked in by charles, 15 years ago

oooh, does the same thing but it's shiny clean instead of ugly hacky

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