1EXTRA_DIST = \
2    Credits.rtf \
3    AboutWindow.xib \
4    BlocklistStatusWindow.xib \
5    FileRenameSheetController.xib \
6    FilterBar.xib \
7    InfoFileView.xib \
8    InfoPeersView.xib \
9    InfoTrackersView.xib \
10    InfoWindow.xib \
11    MessageWindow.xib \
12    StatsWindow.xib \
13    StatusBar.xib \
14    URLSheetWindow.xib \
15    Defaults.plist \
16    Info.plist \
17    Transmission_Prefix.pch \
18    Sparkle.framework \
19    sparkle_dsa_pub.pem \
20    TransmissionHelp \
21    QuickLookPlugin \
22    VDKQueue \
23    Images \
24    da.lproj \
25    de.lproj \
26    en.lproj \
27    es.lproj \
28    fr.lproj \
29    it.lproj \
30    nl.lproj \
31    pt_PT.lproj \
32    ru.lproj \
33    tr.lproj \
34    AboutWindowController.h \
35    AboutWindowController.m \
36    AddMagnetWindowController.h \
37    AddMagnetWindowController.m \
38    AddWindowController.h \
39    AddWindowController.m \
40    Badger.h \
41    Badger.m \
42    BadgeView.h \
43    BadgeView.m \
44    BlocklistDownloader.h \
45    BlocklistDownloader.m \
46    BlocklistDownloaderViewController.h \
47    BlocklistDownloaderViewController.m \
48    BlocklistScheduler.h \
49    BlocklistScheduler.m \
50    BonjourController.h \
51    BonjourController.m \
52    ButtonToolbarItem.h \
53    ButtonToolbarItem.m \
54    ColorTextField.h \
55    ColorTextField.m \
56    Controller.h \
57    Controller.m \
58    CreatorWindowController.h \
59    CreatorWindowController.m \
60    DragOverlayView.h \
61    DragOverlayView.m \
62    DragOverlayWindow.h \
63    DragOverlayWindow.m \
64    ExpandedPathToIconTransformer.h \
65    ExpandedPathToIconTransformer.m \
66    ExpandedPathToPathTransformer.h \
67    ExpandedPathToPathTransformer.m \
68    FileRenameSheetController.h \
69    FileRenameSheetController.m \
70    FileListNode.h \
71    FileListNode.m \
72    FileNameCell.h \
73    FileNameCell.m \
74    FileOutlineController.h \
75    FileOutlineController.m \
76    FileOutlineView.h \
77    FileOutlineView.m \
78    FilePriorityCell.h \
79    FilePriorityCell.m \
80    FilterBarController.h \
81    FilterBarController.m \
82    FilterBarView.h \
83    FilterBarView.m \
84    FilterButton.h \
85    FilterButton.m \
86    GlobalOptionsPopoverViewController.h \
87    GlobalOptionsPopoverViewController.m \
88    GroupsController.h \
89    GroupsController.m \
90    GroupsPrefsController.h \
91    GroupsPrefsController.m \
92    GroupToolbarItem.h \
93    GroupToolbarItem.m \
94    InfoTabButtonBack.h \
95    InfoTabButtonBack.m \
96    InfoTabButtonCell.h \
97    InfoTabButtonCell.m \
98    InfoTextField.h \
99    InfoTextField.m \
100    InfoActivityViewController.h \
101    InfoActivityViewController.m \
102    InfoFileViewController.h \
103    InfoFileViewController.m \
104    InfoGeneralViewController.h \
105    InfoGeneralViewController.m \
106    InfoOptionsViewController.h \
107    InfoOptionsViewController.m \
108    InfoPeersViewController.h \
109    InfoPeersViewController.m \
110    InfoTrackersViewController.h \
111    InfoTrackersViewController.m \
112    InfoViewController.h \
113    InfoWindowController.h \
114    InfoWindowController.m \
115    main.m \
116    MessageWindowController.h \
117    MessageWindowController.m \
118    NSApplicationAdditions.h \
119    NSApplicationAdditions.m \
120    NSImageAdditions.h \
121    NSImageAdditions.m \
122    NSMutableArrayAdditions.h \
123    NSMutableArrayAdditions.m \
124    NSStringAdditions.h \
125    NSStringAdditions.m \
126    PeerProgressIndicatorCell.h \
127    PeerProgressIndicatorCell.m \
128    PeerTableView.h \
129    PeerTableView.m \
130    PiecesView.h \
131    PiecesView.m \
132    PortChecker.h \
133    PortChecker.m \
134    PredicateEditorRowTemplateAny.h \
135    PredicateEditorRowTemplateAny.m \
136    PrefsController.h \
137    PrefsController.m \
138    PrefsWindow.h \
139    PrefsWindow.m \
140    ProgressGradients.h \
141    ProgressGradients.m \
142    ShareToolbarItem.h \
143    ShareToolbarItem.m \
144    ShareTorrentFileHelper.h \
145    ShareTorrentFileHelper.m \
146    StatsWindowController.h \
147    StatsWindowController.m \
148    StatusBarController.h \
149    StatusBarController.m \
150    StatusBarView.h \
151    StatusBarView.m \
152    ToolbarSegmentedCell.h \
153    ToolbarSegmentedCell.m \
154    TorrentCell.h \
155    TorrentCell.m \
156    TorrentGroup.h \
157    TorrentGroup.m \
158    Torrent.h \
159    Torrent.m \
160    TorrentTableView.h \
161    TorrentTableView.m \
162    TrackerCell.h \
163    TrackerCell.m \
164    TrackerNode.h \
165    TrackerNode.m \
166    TrackerTableView.h \
167    TrackerTableView.m \
168    URLSheetWindowController.h \
169    URLSheetWindowController.m \
170    WebSeedTableView.h \
171    WebSeedTableView.m
172
173dist-hook:
174	rm -rf `find $(distdir)/ -type d -name .svn`
175	rm -rf `find $(distdir)/ -type d -name .deps`
176
177if BUILD_MAC
178# Use Xcode do make the actual build
179all:
180	@(cd .. && xcodebuild -alltargets -activeconfiguration | grep -v "^$$")
181clean-local:
182	@(cd .. && xcodebuild -alltargets -activeconfiguration clean | grep -v "^$$")
183endif
184
185define PACKAGE_RULE1
186	$(RM) tmp "Transmission $(VERSION_PACKAGE)" \
187	  Transmission-$(VERSION_PACKAGE).dmg
188	mkdir -p tmp
189	cp -R macosx/Transmission.app tmp/
190endef
191define PACKAGE_RULE2
192	mv tmp "Transmission $(VERSION_PACKAGE)"
193	hdiutil create -format UDZO -imagekey zlib-level=9 -srcfolder \
194	  "Transmission $(VERSION_PACKAGE)" Transmission-$(VERSION_PACKAGE).dmg
195	rm -rf "Transmission $(VERSION_PACKAGE)"
196endef
197
198package:
199	$(PACKAGE_RULE1)
200	$(PACKAGE_RULE2)
201
202package-release:
203	$(PACKAGE_RULE1)
204	strip -S tmp/Transmission.app/Contents/MacOS/Transmission
205	$(PACKAGE_RULE2)
206