source: trunk/macosx/Makefile.am @ 2570

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

this one's a little more disgusting, but works

File size: 908 bytes
Line 
1
2dist-hook:
3        rm -f subdirs.tar
4        tar cvf subdirs.tar `find $(srcdir) | grep -v svn`
5        tar xvf subdirs.tar $(distdir)
6        rm -f subdirs.tar
7
8# Use Xcode do make the actual build
9all:
10        @(cd .. && xcodebuild -alltargets -activeconfiguration | grep -v "^$$")
11clean:
12        @(cd .. && xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$")
13
14define PACKAGE_RULE1
15        $(RM) tmp "Transmission $(VERSION_PACKAGE)" \
16          Transmission-$(VERSION_PACKAGE).dmg
17        mkdir -p tmp
18        cp -R macosx/Transmission.app tmp/
19endef
20define PACKAGE_RULE2
21        mv tmp "Transmission $(VERSION_PACKAGE)"
22        hdiutil create -format UDZO -imagekey zlib-level=9 -srcfolder \
23          "Transmission $(VERSION_PACKAGE)" Transmission-$(VERSION_PACKAGE).dmg
24        rm -rf "Transmission $(VERSION_PACKAGE)"
25endef
26
27package:
28        $(PACKAGE_RULE1)
29        $(PACKAGE_RULE2)
30
31package-release:
32        $(PACKAGE_RULE1)
33        strip -S tmp/Transmission.app/Contents/MacOS/Transmission
34        $(PACKAGE_RULE2)
Note: See TracBrowser for help on using the repository browser.