source: trunk/Makefile @ 243

Last change on this file since 243 was 243, checked in by joshe, 16 years ago

A couple minor i18n cleanups.
Add italian translation.
Add an install make target for transmissioncli and transmission-gtk.

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