source: trunk/mk/osx.mk @ 1075

Last change on this file since 1075 was 1075, checked in by titer, 15 years ago

Clean up, generate Info.plist from version.sh as well

  • Property svn:keywords set to Date Rev Author Id
File size: 1021 bytes
Line 
1# $Id: osx.mk 1075 2006-11-11 02:02:44Z titer $
2
3#
4# Use Xcode do make the actual build
5#
6all:
7        @xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
8clean:
9        @xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
10
11
12#
13# Package generation
14# Check if this is a release or an SVN build
15#
16include mk/version.mk
17ifeq ($(VERSION_STRING),$(VERSION_MAJOR).$(VERSION_MINOR))
18VERSION_PACKAGE = $(VERSION_STRING)
19else
20VERSION_PACKAGE = $(VERSION_STRING)-r$(VERSION_REVISION)
21endif
22       
23define PACKAGE_RULE1
24        $(RM) tmp "Transmission $(VERSION_PACKAGE)" \
25          Transmission-$(VERSION_PACKAGE).dmg
26        mkdir -p tmp
27        cp -R macosx/Transmission.app tmp/
28endef
29define PACKAGE_RULE2
30        mv tmp "Transmission $(VERSION_PACKAGE)"
31        hdiutil create -format UDZO -imagekey zlib-level=9 -srcfolder \
32          "Transmission $(VERSION_PACKAGE)" Transmission-$(VERSION_PACKAGE).dmg
33        rm -rf "Transmission $(VERSION_PACKAGE)"
34endef
35
36package:
37        $(PACKAGE_RULE1)
38        $(PACKAGE_RULE2)
39
40package-release:
41        $(PACKAGE_RULE1)
42        strip -S tmp/Transmission.app/Contents/MacOS/Transmission
43        $(PACKAGE_RULE2)
Note: See TracBrowser for help on using the repository browser.