source: trunk/Makefile @ 261

Last change on this file since 261 was 261, checked in by titer, 16 years ago

Updated svn:keywords

  • Property svn:keywords set to Date Rev Author Id
File size: 2.0 KB
Line 
1# $Id: Makefile 261 2006-05-29 21:27:31Z titer $
2
3-include Makefile.config
4include Makefile.common
5
6ifndef CONFIGURE_RUN
7$(error You must run ./configure first)
8endif
9
10ifneq ($(SYSTEM),Darwin)
11
12TARGETS = .cli
13ifeq ($(GTK),yes)
14TARGETS += .gtk
15endif
16ifeq ($(SYSTEM),BeOS)
17TARGETS += .beos
18endif
19
20all: $(TARGETS)
21
22.lib:
23        @echo "* Building libtransmission"
24        @$(MAKE) -C libtransmission
25
26.cli: .lib
27        @echo "* Building Transmission CLI client"
28        @$(MAKE) -C cli
29
30.gtk: .lib
31        @echo "* Building Transmission GTK+ client"
32        @$(MAKE) -C gtk
33
34.beos: .lib
35        @echo "* Building Transmission BeOS client"
36        @make -C beos
37
38install: all $(foreach SUB,$(TARGETS),.install$(SUB))
39
40.install.cli: .cli
41        @echo "* Installing Transmission CLI client"
42        @$(MAKE) -C cli install
43
44.install.gtk: .gtk
45        @echo "* Installing Transmission GTK+ client"
46        @$(MAKE) -C gtk install
47
48.install.beos:
49
50clean:
51        @$(MAKE) -C libtransmission clean
52        @$(MAKE) -C cli clean
53ifeq ($(GTK),yes)
54        @$(MAKE) -C gtk clean
55endif
56ifeq ($(SYSTEM),BeOS)
57        @$(MAKE) -C beos clean
58endif
59
60else
61
62all:
63        @$(MAKE) -C macosx
64        @xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
65
66clean:
67        @xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
68        @$(MAKE) -C macosx clean
69
70MAKELINK = printf "[InternetShortcut]\nURL=http://transmission.m0k.org%s\n"
71define PACKAGE_RULE1
72        $(RM) tmp "Transmission $(VERSION_STRING)" \
73          Transmission-$(VERSION_STRING).dmg
74        mkdir -p tmp
75        cp -r macosx/Transmission.app tmp/
76        cp AUTHORS tmp/AUTHORS.txt
77        cp LICENSE tmp/LICENSE.txt
78        cp NEWS tmp/NEWS.txt
79        $(MAKELINK) "/" > tmp/Homepage.url
80        $(MAKELINK) "/forum" > tmp/Forums.url
81        $(MAKELINK) "/contribute.php" > tmp/Contribute.url
82endef
83define PACKAGE_RULE2
84        mv tmp "Transmission $(VERSION_STRING)"
85        hdiutil create -format UDZO -srcfolder \
86          "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg
87        rm -rf "Transmission $(VERSION_STRING)"
88endef
89
90package:
91        $(PACKAGE_RULE1)
92        $(PACKAGE_RULE2)
93
94package-release:
95        $(PACKAGE_RULE1)
96        strip -S tmp/Transmission.app/Contents/MacOS/Transmission
97        $(PACKAGE_RULE2)
98
99endif
Note: See TracBrowser for help on using the repository browser.