source: trunk/Makefile @ 198

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

Nicer make output. Also moved the CLI client to its own folder like
other interfaces.

File size: 1.7 KB
Line 
1include Makefile.config
2include Makefile.common
3
4ifneq ($(SYSTEM),Darwin)
5
6TARGETS = .cli
7ifeq ($(GTK),yes)
8TARGETS += .gtk
9endif
10ifeq ($(SYSTEM),BeOS)
11TARGETS += .beos
12endif
13
14all: $(TARGETS)
15
16.lib:
17        @echo "* Building libtransmission"
18        @$(MAKE) -C libtransmission $(MAKESHUTUP)
19
20.cli: .lib
21        @echo "* Building Transmission CLI client"
22        @$(MAKE) -C cli $(MAKESHUTUP)
23
24.gtk: .lib
25        @echo "* Building Transmission GTK+ client"
26        @$(MAKE) -C gtk $(MAKESHUTUP)
27
28.beos: .lib
29        @echo "* Building Transmission BeOS client"
30        @make -C beos $(MAKESHUTUP)
31
32clean:
33        @$(MAKE) -C libtransmission clean $(MAKESHUTUP)
34        @$(MAKE) -C cli clean $(MAKESHUTUP)
35ifeq ($(GTK),yes)
36        @$(MAKE) -C gtk clean $(MAKESHUTUP)
37endif
38ifeq ($(SYSTEM),BeOS)
39        @$(MAKE) -C beos clean $(MAKESHUTUP)
40endif
41
42else
43
44all:
45        $(MAKE) -C macosx
46        xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
47
48clean:
49        xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$"
50        $(MAKE) -C macosx clean
51
52MAKELINK = printf "[InternetShortcut]\nURL=http://%s\n"
53
54package:
55        $(RM) tmp "Transmission $(VERSION_STRING)" \
56            Transmission-$(VERSION_STRING).dmg && \
57          mkdir -p tmp && \
58          cp -r macosx/Transmission.app tmp/ && \
59          cp AUTHORS tmp/AUTHORS.txt && \
60          cp LICENSE tmp/LICENSE.txt && \
61          cp NEWS tmp/NEWS.txt && \
62          strip -S tmp/Transmission.app/Contents/MacOS/Transmission && \
63          $(MAKELINK) "transmission.m0k.org/" > tmp/Homepage.url && \
64          $(MAKELINK) "transmission.m0k.org/forum" > tmp/Forums.url && \
65          $(MAKELINK) "transmission.m0k.org/contribute.php" > tmp/Contribute.url && \
66          mv tmp "Transmission $(VERSION_STRING)" && \
67          hdiutil create -format UDZO -srcfolder \
68            "Transmission $(VERSION_STRING)" Transmission-$(VERSION_STRING).dmg && \
69          rm -rf "Transmission $(VERSION_STRING)"
70
71endif
Note: See TracBrowser for help on using the repository browser.