source: trunk/macosx/Makefile.am @ 2419

Last change on this file since 2419 was 2419, checked in by joshe, 15 years ago

Run xcodebuild from the right directory.

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