1# Projeto: wxDownload Fast
2RESOURCE_DIR = resources/
3SOURCE_DIR = src/
4LANGUAGE_DIR = languages/
5MANPAGE_DIR = man/
6AWK = awk
7CPP  = $(CROSS_PREFIX)g++
8CC   = $(CROSS_PREFIX)gcc
9AR   = $(CROSS_PREFIX)ar
10WINDRES = $(CROSS_PREFIX)windres
11STRIP = $(CROSS_PREFIX)strip
12
13BUILD_GCC = build-gcc/
14ifeq ($(Debug),1)
15	DEBUG = 1
16	BUILD_DIR = $(BUILD_GCC)Debug/
17else
18	BUILD_DIR = $(BUILD_GCC)Release/
19endif
20
21ifeq ($(DEBUG),1)
22	WXCONFIG = $(WXWIDGETS_DIR)wx-config --debug=yes
23else
24	WXCONFIG = $(WXWIDGETS_DIR)wx-config --debug=no
25endif
26
27WXRC = wxrc
28INSTALL = /usr/bin/install
29INSTALL_FILE = $(INSTALL) -m 644
30INSTALL_DIR = $(INSTALL) -d
31
32OBJ_TMP  = $(BUILD_DIR)BoxFind.o $(BUILD_DIR)BoxNew.o $(BUILD_DIR)BoxOptions.o $(BUILD_DIR)CheckNewRelease.o $(BUILD_DIR)DownloadFile.o $(BUILD_DIR)DownloadThread.o $(BUILD_DIR)FinishedList.o $(BUILD_DIR)FTP.o $(BUILD_DIR)HTTP.o $(BUILD_DIR)Graph.o $(BUILD_DIR)InProgressList.o $(BUILD_DIR)MainFrame.o $(BUILD_DIR)Metalink.o $(BUILD_DIR)ProgressBar.o $(BUILD_DIR)TaskBarIcon.o $(BUILD_DIR)UrlName.o $(BUILD_DIR)wxDFast.o $(BUILD_DIR)UtilFunctions.o
33
34ifeq ($(XRC), 1)
35	OBJ = $(OBJ_TMP)
36else
37	OBJ =$(OBJ_TMP) $(BUILD_DIR)Resources.o
38endif
39
40LINKOBJ  = $(OBJ)
41LIBS =  -L$(BUILD_DIR) -lwxmd5 -lwxsha1 -Wl `$(WXCONFIG) --libs`
42INCS =  `$(WXCONFIG) --cxxflags`
43
44RESINCS = --include-dir=`$(WXCONFIG) --cflags | $(AWK) -F-I '{ print $$3 }'`
45
46ifeq ($(XRC), 1)
47	XRC_PARAM = -D USE_EXTERNAL_XRC
48else
49	XRC_PARAM =
50endif
51
52ifeq ($(DEBUG), 1)
53	DEBUG_PARAM = -g -ggdb
54else
55	DEBUG_PARAM =
56endif
57
58ifeq ($(CPU)0, 0)
59	CPU_PARAM =
60else
61	CPU_PARAM = -mtune=$(CPU)
62endif
63
64ifeq ($(PORTABLE), 1)
65	PORTABLE_PARAM = -D WXDFAST_PORTABLE
66else
67	PORTABLE_PARAM =
68endif
69
70WXMD5 = libwxmd5.a
71WXSHA1 = libwxsha1.a
72CXXFLAGS = $(INCS) -fno-strict-aliasing -Wall -O2 -MMD $(CPU_PARAM) $(XRC_PARAM) $(DEBUG_PARAM) $(PORTABLE_PARAM)
73BIN = wxdfast
74RES = wxDFast.res
75VERSION = 0.6.0
76DEBIANPACK = 1
77
78ifeq ($(BUILD), win32)
79
80all: criardir $(BIN).exe
81
82$(BIN).exe: $(LINKOBJ) $(WXMD5) $(WXSHA1) $(RES)
83	$(CPP) $(LINKOBJ) -o $(BIN).exe $(LIBS) $(BUILD_DIR)$(RES) $(CXXFLAGS)
84	$(STRIP) $(BIN).exe
85else
86all: criardir $(BIN)
87
88$(BIN): $(LINKOBJ) $(WXMD5) $(WXSHA1)
89	$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) $(CXXFLAGS)
90#	$(STRIP) $(BIN)
91endif
92
93$(BUILD_DIR)Resources.cpp: $(RESOURCE_DIR)boxnew.xrc $(RESOURCE_DIR)boxoptions.xrc $(RESOURCE_DIR)mainwindow.xrc $(RESOURCE_DIR)menubar.xrc $(RESOURCE_DIR)toolbar.xrc $(RESOURCE_DIR)boxabout.xrc $(RESOURCE_DIR)images.xrc
94ifeq ($(XRC), 1)
95
96else
97	$(WXRC) -v -c -o $(BUILD_DIR)Resources.cpp resources/*.xrc
98endif
99
100criardir:
101	if [ ! -e $(BUILD_DIR) ]; then mkdir -p "$(BUILD_DIR)"; fi
102
103$(BUILD_DIR)Resources.o: $(BUILD_DIR)Resources.cpp
104	$(CPP) -c $(BUILD_DIR)Resources.cpp -o $(BUILD_DIR)Resources.o $(CXXFLAGS)
105
106$(BUILD_DIR)BoxFind.o: src/BoxFind.cpp
107	$(CPP) -c src/BoxFind.cpp -o $(BUILD_DIR)BoxFind.o $(CXXFLAGS)
108
109$(BUILD_DIR)BoxNew.o: src/BoxNew.cpp
110	$(CPP) -c src/BoxNew.cpp -o $(BUILD_DIR)BoxNew.o $(CXXFLAGS)
111
112$(BUILD_DIR)BoxOptions.o: src/BoxOptions.cpp
113	$(CPP) -c src/BoxOptions.cpp -o $(BUILD_DIR)BoxOptions.o $(CXXFLAGS)
114
115$(BUILD_DIR)CheckNewRelease.o: src/CheckNewRelease.cpp
116	$(CPP) -c src/CheckNewRelease.cpp -o $(BUILD_DIR)CheckNewRelease.o $(CXXFLAGS)
117
118$(BUILD_DIR)DownloadFile.o: src/DownloadFile.cpp
119	$(CPP) -c src/DownloadFile.cpp -o $(BUILD_DIR)DownloadFile.o $(CXXFLAGS)
120
121$(BUILD_DIR)DownloadThread.o: src/DownloadThread.cpp
122	$(CPP) -c src/DownloadThread.cpp -o $(BUILD_DIR)DownloadThread.o $(CXXFLAGS)
123
124$(BUILD_DIR)FinishedList.o: src/FinishedList.cpp
125	$(CPP) -c src/FinishedList.cpp -o $(BUILD_DIR)FinishedList.o $(CXXFLAGS)
126
127$(BUILD_DIR)FTP.o: src/FTP.cpp
128	$(CPP) -c src/FTP.cpp -o $(BUILD_DIR)FTP.o $(CXXFLAGS)
129
130$(BUILD_DIR)HTTP.o: src/HTTP.cpp
131	$(CPP) -c src/HTTP.cpp -o $(BUILD_DIR)HTTP.o $(CXXFLAGS)
132
133$(BUILD_DIR)Graph.o: src/Graph.cpp
134	$(CPP) -c src/Graph.cpp -o $(BUILD_DIR)Graph.o $(CXXFLAGS)
135
136$(BUILD_DIR)InProgressList.o: src/InProgressList.cpp
137	$(CPP) -c src/InProgressList.cpp -o $(BUILD_DIR)InProgressList.o $(CXXFLAGS)
138
139$(BUILD_DIR)MainFrame.o: src/MainFrame.cpp
140	$(CPP) -c src/MainFrame.cpp -o $(BUILD_DIR)MainFrame.o $(CXXFLAGS)
141
142$(BUILD_DIR)Metalink.o: src/Metalink.cpp
143	$(CPP) -c src/Metalink.cpp -o $(BUILD_DIR)Metalink.o $(CXXFLAGS)
144
145$(BUILD_DIR)ProgressBar.o: src/ProgressBar.cpp
146	$(CPP) -c src/ProgressBar.cpp -o $(BUILD_DIR)ProgressBar.o $(CXXFLAGS)
147
148$(BUILD_DIR)TaskBarIcon.o: src/TaskBarIcon.cpp
149	$(CPP) -c src/TaskBarIcon.cpp -o $(BUILD_DIR)TaskBarIcon.o $(CXXFLAGS)
150
151$(BUILD_DIR)UrlName.o: src/UrlName.cpp
152	$(CPP) -c src/UrlName.cpp -o $(BUILD_DIR)UrlName.o $(CXXFLAGS)
153
154$(BUILD_DIR)UtilFunctions.o: src/UtilFunctions.cpp
155	$(CPP) -c src/UtilFunctions.cpp -o $(BUILD_DIR)UtilFunctions.o $(CXXFLAGS)
156
157$(BUILD_DIR)wxDFast.o: src/wxDFast.cpp
158	$(CPP) -c src/wxDFast.cpp -o $(BUILD_DIR)wxDFast.o $(CXXFLAGS)
159
160$(RES): src/wxDFast.rc
161	(cd src;$(WINDRES) -i wxDFast.rc -J rc -o ../$(BUILD_DIR)$(RES) -O coff $(RESINCS))
162
163$(WXMD5): $(BUILD_DIR)md5.o $(BUILD_DIR)wxMD5.o
164	$(AR) cur $(BUILD_DIR)$(WXMD5) $(BUILD_DIR)wxMD5.o $(BUILD_DIR)md5.o
165
166$(BUILD_DIR)md5.o: src/wxMD5/md5.cpp
167	$(CPP) -c src/wxMD5/md5.cpp -o $(BUILD_DIR)md5.o $(CXXFLAGS)
168
169$(BUILD_DIR)wxMD5.o: src/wxMD5/wxMD5.cpp
170	$(CPP) -c src/wxMD5/wxMD5.cpp -o $(BUILD_DIR)wxMD5.o $(CXXFLAGS)
171
172$(WXSHA1): $(BUILD_DIR)sha1.o $(BUILD_DIR)wxSHA1.o
173	$(AR) cur $(BUILD_DIR)$(WXSHA1) $(BUILD_DIR)wxSHA1.o $(BUILD_DIR)sha1.o
174
175$(BUILD_DIR)sha1.o: src/wxSHA1/sha1.cpp
176	$(CPP) -c src/wxSHA1/sha1.cpp -o $(BUILD_DIR)sha1.o $(CXXFLAGS)
177
178$(BUILD_DIR)wxSHA1.o: src/wxSHA1/wxSHA1.cpp
179	$(CPP) -c src/wxSHA1/wxSHA1.cpp -o $(BUILD_DIR)wxSHA1.o $(CXXFLAGS)
180
181
182install: all
183	$(INSTALL_DIR) $(DESTDIR)/usr/lib/$(BIN)
184ifeq ($(BUILD), win32)
185	$(INSTALL_FILE) --mode=755 $(BIN).exe $(DESTDIR)/usr/bin/$(BIN)
186else
187	$(INSTALL_FILE) --mode=755 $(BIN) $(DESTDIR)/usr/bin/$(BIN)
188endif
189	$(INSTALL_FILE) README* $(DESTDIR)/usr/lib/$(BIN)
190	$(INSTALL_FILE) ChangeLog* $(DESTDIR)/usr/lib/$(BIN)
191#	$(INSTALL_FILE) COPYING $(DESTDIR)/usr/lib/$(BIN)
192	$(INSTALL_DIR) $(DESTDIR)/usr/share/pixmaps
193	$(INSTALL_FILE) $(RESOURCE_DIR)wxdfast.xpm $(DESTDIR)/usr/share/pixmaps
194	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)
195	$(INSTALL_FILE) $(RESOURCE_DIR)*.xrc $(DESTDIR)/usr/share/$(BIN)/
196	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/xpm
197	$(INSTALL_FILE) $(RESOURCE_DIR)xpm/*.xpm $(DESTDIR)/usr/share/$(BIN)/xpm/
198	$(INSTALL_FILE) $(RESOURCE_DIR)xpm/*.ico $(DESTDIR)/usr/share/$(BIN)/xpm/
199	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/xpm/big
200	$(INSTALL_FILE) $(RESOURCE_DIR)xpm/big/*.xpm $(DESTDIR)/usr/share/$(BIN)/xpm/big/
201	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/xpm/small
202	$(INSTALL_FILE) $(RESOURCE_DIR)xpm/small/*.xpm $(DESTDIR)/usr/share/$(BIN)/xpm/small/
203	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop
204	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/readme.txt $(DESTDIR)/usr/share/$(BIN)/RipStop/
205	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/license.txt $(DESTDIR)/usr/share/$(BIN)/RipStop/
206	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop/icon
207	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/icon/*.png $(DESTDIR)/usr/share/$(BIN)/RipStop/icon
208	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/icon/*.ico $(DESTDIR)/usr/share/$(BIN)/RipStop/icon
209	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop/svg
210	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/svg/*.svg $(DESTDIR)/usr/share/$(BIN)/RipStop/svg/
211	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop/logo
212	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/logo/*.png $(DESTDIR)/usr/share/$(BIN)/RipStop/logo/
213	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop/menubar
214	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/menubar/*.png $(DESTDIR)/usr/share/$(BIN)/RipStop/menubar/
215	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop/toolbar
216	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/toolbar/*.png $(DESTDIR)/usr/share/$(BIN)/RipStop/toolbar/
217	$(INSTALL_DIR) $(DESTDIR)/usr/share/$(BIN)/RipStop/preview
218	$(INSTALL_FILE) $(RESOURCE_DIR)RipStop/preview/*.png $(DESTDIR)/usr/share/$(BIN)/RipStop/preview/
219	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/pt_BR/LC_MESSAGES
220	$(INSTALL_FILE) $(LANGUAGE_DIR)pt_BR/wxDFast.mo $(DESTDIR)/usr/share/locale/pt_BR/LC_MESSAGES
221	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/es/LC_MESSAGES
222	$(INSTALL_FILE) $(LANGUAGE_DIR)es/wxDFast.mo $(DESTDIR)/usr/share/locale/es/LC_MESSAGES
223	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES
224	$(INSTALL_FILE) $(LANGUAGE_DIR)fr/wxDFast.mo $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES
225	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/de/LC_MESSAGES
226	$(INSTALL_FILE) $(LANGUAGE_DIR)de/wxDFast.mo $(DESTDIR)/usr/share/locale/de/LC_MESSAGES
227	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/cs/LC_MESSAGES
228	$(INSTALL_FILE) $(LANGUAGE_DIR)cs/wxDFast.mo $(DESTDIR)/usr/share/locale/cs/LC_MESSAGES
229	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/ru/LC_MESSAGES
230	$(INSTALL_FILE) $(LANGUAGE_DIR)ru/wxDFast.mo $(DESTDIR)/usr/share/locale/ru/LC_MESSAGES
231	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/tr/LC_MESSAGES
232	$(INSTALL_FILE) $(LANGUAGE_DIR)tr/wxDFast.mo $(DESTDIR)/usr/share/locale/tr/LC_MESSAGES
233	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/hu/LC_MESSAGES
234	$(INSTALL_FILE) $(LANGUAGE_DIR)hu/wxDFast.mo $(DESTDIR)/usr/share/locale/hu/LC_MESSAGES
235	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/pl/LC_MESSAGES
236	$(INSTALL_FILE) $(LANGUAGE_DIR)pl/wxDFast.mo $(DESTDIR)/usr/share/locale/hu/LC_MESSAGES
237	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/id/LC_MESSAGES
238	$(INSTALL_FILE) $(LANGUAGE_DIR)id/wxDFast.mo $(DESTDIR)/usr/share/locale/id/LC_MESSAGES
239	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/nl/LC_MESSAGES
240	$(INSTALL_FILE) $(LANGUAGE_DIR)nl/wxDFast.mo $(DESTDIR)/usr/share/locale/nl/LC_MESSAGES
241#	$(INSTALL_DIR) $(DESTDIR)/usr/share/locale/hy/LC_MESSAGES
242#	$(INSTALL_FILE) $(LANGUAGE_DIR)hy/wxDFast.mo $(DESTDIR)/usr/share/locale/hy/LC_MESSAGES
243	$(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
244	$(INSTALL_FILE) $(MANPAGE_DIR)man1/wxdfast.1.gz $(DESTDIR)/usr/share/man/man1
245	$(INSTALL_DIR) $(DESTDIR)/usr/share/man/pt_BR/man1
246	$(INSTALL_FILE) $(MANPAGE_DIR)pt_BR/man1/wxdfast.1.gz $(DESTDIR)/usr/share/man/pt_BR/man1
247	$(INSTALL_DIR) $(DESTDIR)/usr/share/man/pt/man1
248	$(INSTALL_FILE) $(MANPAGE_DIR)pt_BR/man1/wxdfast.1.gz $(DESTDIR)/usr/share/man/pt/man1
249	$(INSTALL_DIR) $(DESTDIR)/usr/share/menu
250	$(INSTALL_FILE) $(RESOURCE_DIR)wxdfast $(DESTDIR)/usr/share/menu
251	$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
252	$(INSTALL_FILE) $(RESOURCE_DIR)wxdfast.desktop $(DESTDIR)/usr/share/applications
253
254uninstall:
255ifeq ($(BUILD), win32)
256	rm -f $(DESTDIR)/usr/bin/$(BIN).exe
257else
258	rm -f $(DESTDIR)/usr/bin/$(BIN)
259endif
260	rm -f $(DESTDIR)/usr/lib/$(BIN)/README*
261	rm -f $(DESTDIR)/usr/lib/$(BIN)/ChangeLog*
262	rm -f $(DESTDIR)/usr/lib/$(BIN)/gpl.txt
263	rm -f $(DESTDIR)/usr/lib/$(BIN)/COPYING
264	rm -f $(DESTDIR)/usr/share/$(BIN)/xpm/small/*.xpm
265	rmdir $(DESTDIR)/usr/share/$(BIN)/xpm/small
266	rm -f $(DESTDIR)/usr/share/$(BIN)/xpm/big/*.xpm
267	rmdir $(DESTDIR)/usr/share/$(BIN)/xpm/big
268	rm -f $(DESTDIR)/usr/share/$(BIN)/xpm/*.xpm
269	rm -f $(DESTDIR)/usr/share/$(BIN)/xpm/*.ico
270	rmdir $(DESTDIR)/usr/share/$(BIN)/xpm
271	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/icon/*.png
272	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/icon/*.ico
273	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop/icon
274	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/logo/*.png
275	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop/logo
276	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/menubar/*.png
277	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop/menubar
278	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/preview/*.png
279	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop/preview
280	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/toolbar/*.png
281	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop/toolbar
282	rm -f $(DESTDIR)/usr/share/$(BIN)/RipStop/svg/*.svg
283	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop/svg
284	rmdir $(DESTDIR)/usr/share/$(BIN)/RipStop
285	rm -f $(DESTDIR)/usr/share/$(BIN)/*.xrc
286	rmdir $(DESTDIR)/usr/share/$(BIN)
287	rm -f $(DESTDIR)/usr/share/pixmaps/wxdfast.xpm
288	rm -f $(DESTDIR)/usr/share/locale/pt_BR/LC_MESSAGES/wxDFast.mo
289	rm -f $(DESTDIR)/usr/share/locale/es/LC_MESSAGES/wxDFast.mo
290	rm -f $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES/wxDFast.mo
291	rm -f $(DESTDIR)/usr/share/locale/cs/LC_MESSAGES/wxDFast.mo
292	rm -f $(DESTDIR)/usr/share/locale/de/LC_MESSAGES/wxDFast.mo
293	rm -f $(DESTDIR)/usr/share/locale/ru/LC_MESSAGES/wxDFast.mo
294	rm -f $(DESTDIR)/usr/share/locale/tr/LC_MESSAGES/wxDFast.mo
295	rm -f $(DESTDIR)/usr/share/locale/hu/LC_MESSAGES/wxDFast.mo
296	rm -f $(DESTDIR)/usr/share/locale/pl/LC_MESSAGES/wxDFast.mo
297	rm -f $(DESTDIR)/usr/share/locale/id/LC_MESSAGES/wxDFast.mo
298	rm -f $(DESTDIR)/usr/share/locale/nl/LC_MESSAGES/wxDFast.mo
299#	rm -f $(DESTDIR)/usr/share/locale/hy/LC_MESSAGES/wxDFast.mo
300	rm -f $(DESTDIR)/usr/share/man/man1/wxdfast.1.gz
301	rm -f $(DESTDIR)/usr/share/man/pt/man1/wxdfast.1.gz
302	rm -f $(DESTDIR)/usr/share/man/pt_BR/man1/wxdfast.1.gz
303	rm -f $(DESTDIR)/usr/share/menu/wxdfast
304	rm -f $(DESTDIR)/usr/share/applications/wxdfast.desktop
305	rmdir $(DESTDIR)/usr/lib/$(BIN)
306	if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
307
308dist: source
309	tar -cf $(BIN)-$(VERSION)-src.tar $(BIN)-$(VERSION)
310	gzip $(BIN)-$(VERSION)-src.tar
311	rm -r $(BIN)-$(VERSION)
312
313deb: clean
314	dpkg-buildpackage -rfakeroot
315
316source:
317	rm -f $(BIN)-$(VERSION)-src.tar.gz
318	rm -rf $(BIN)-$(VERSION)
319	mkdir $(BIN)-$(VERSION)
320	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)
321	cp $(LANGUAGE_DIR)Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)
322	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)pt_BR
323	cp $(LANGUAGE_DIR)pt_BR/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)pt_BR
324	cp $(LANGUAGE_DIR)pt_BR/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)pt_BR
325	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)es
326	cp $(LANGUAGE_DIR)es/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)es
327	cp $(LANGUAGE_DIR)es/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)es
328	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)fr
329	cp $(LANGUAGE_DIR)fr/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)fr
330	cp $(LANGUAGE_DIR)fr/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)fr
331	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)de
332	cp $(LANGUAGE_DIR)de/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)de
333	cp $(LANGUAGE_DIR)de/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)de
334	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)cs
335	cp $(LANGUAGE_DIR)cs/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)cs
336	cp $(LANGUAGE_DIR)cs/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)cs
337	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)ru
338	cp $(LANGUAGE_DIR)ru/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)ru
339	cp $(LANGUAGE_DIR)ru/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)ru
340	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)tr
341	cp $(LANGUAGE_DIR)tr/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)tr
342	cp $(LANGUAGE_DIR)tr/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)tr
343	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)hu
344	cp $(LANGUAGE_DIR)hu/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)hu
345	cp $(LANGUAGE_DIR)hu/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)hu
346	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)pl
347	cp $(LANGUAGE_DIR)pl/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)pl
348	cp $(LANGUAGE_DIR)pl/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)pl
349	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)id
350	cp $(LANGUAGE_DIR)id/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)id
351	cp $(LANGUAGE_DIR)id/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)id
352	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)nl
353	cp $(LANGUAGE_DIR)nl/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)nl
354	cp $(LANGUAGE_DIR)nl/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)nl
355#	mkdir $(BIN)-$(VERSION)/$(LANGUAGE_DIR)hy
356#	cp $(LANGUAGE_DIR)hy/wxDFast.* $(BIN)-$(VERSION)/$(LANGUAGE_DIR)hy
357#	cp $(LANGUAGE_DIR)hy/Makefile.am $(BIN)-$(VERSION)/$(LANGUAGE_DIR)hy
358	mkdir $(BIN)-$(VERSION)/$(MANPAGE_DIR)
359	cp $(MANPAGE_DIR)Makefile.am $(BIN)-$(VERSION)/$(MANPAGE_DIR)
360	mkdir $(BIN)-$(VERSION)/$(MANPAGE_DIR)man1
361	cp $(MANPAGE_DIR)man1/wxdfast.1 $(BIN)-$(VERSION)/$(MANPAGE_DIR)man1
362	cp $(MANPAGE_DIR)man1/wxdfast.1.gz $(BIN)-$(VERSION)/$(MANPAGE_DIR)man1
363	cp $(MANPAGE_DIR)man1/Makefile.am $(BIN)-$(VERSION)/$(MANPAGE_DIR)man1
364	mkdir $(BIN)-$(VERSION)/$(MANPAGE_DIR)pt_BR
365	cp $(MANPAGE_DIR)pt_BR/Makefile.am $(BIN)-$(VERSION)/$(MANPAGE_DIR)pt_BR
366	mkdir $(BIN)-$(VERSION)/$(MANPAGE_DIR)pt_BR/man1
367	cp $(MANPAGE_DIR)pt_BR/man1/wxdfast.1 $(BIN)-$(VERSION)/$(MANPAGE_DIR)pt_BR/man1
368	cp $(MANPAGE_DIR)pt_BR/man1/wxdfast.1.gz $(BIN)-$(VERSION)/$(MANPAGE_DIR)pt_BR/man1
369	cp $(MANPAGE_DIR)pt_BR/man1/Makefile.am $(BIN)-$(VERSION)/$(MANPAGE_DIR)pt_BR/man1
370	mkdir $(BIN)-$(VERSION)/resources
371	cp $(RESOURCE_DIR)*.xrc $(BIN)-$(VERSION)/$(RESOURCE_DIR)
372	cp $(RESOURCE_DIR)wxdfast.desktop $(BIN)-$(VERSION)/$(RESOURCE_DIR)
373	cp $(RESOURCE_DIR)wxdfast $(BIN)-$(VERSION)/$(RESOURCE_DIR)
374	cp $(RESOURCE_DIR)Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)
375	cp $(RESOURCE_DIR)wxdfast.iss $(BIN)-$(VERSION)/$(RESOURCE_DIR)
376	mkdir $(BIN)-$(VERSION)/resources/xpm
377	cp $(RESOURCE_DIR)xpm/*.xpm $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm
378	cp $(RESOURCE_DIR)xpm/*.ico $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm
379	cp $(RESOURCE_DIR)xpm/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm
380	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm/small
381	cp $(RESOURCE_DIR)xpm/small/*.xpm $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm/small
382	cp $(RESOURCE_DIR)xpm/small/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm/small
383	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm/big
384	cp $(RESOURCE_DIR)xpm/big/*.xpm $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm/big
385	cp $(RESOURCE_DIR)xpm/big/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)xpm/big
386	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop
387	cp $(RESOURCE_DIR)RipStop/license.txt $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop
388	cp $(RESOURCE_DIR)RipStop/readme.txt $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop
389	cp $(RESOURCE_DIR)RipStop/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop
390	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/icon
391	cp $(RESOURCE_DIR)RipStop/icon/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/icon
392	cp $(RESOURCE_DIR)RipStop/icon/*.png $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/icon
393	cp $(RESOURCE_DIR)RipStop/icon/*.ico $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/icon
394	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/logo
395	cp $(RESOURCE_DIR)RipStop/logo/*.png $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/logo
396	cp $(RESOURCE_DIR)RipStop/logo/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/logo
397	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/menubar
398	cp $(RESOURCE_DIR)RipStop/menubar/*.png $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/menubar
399	cp $(RESOURCE_DIR)RipStop/menubar/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/menubar
400	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/preview
401	cp $(RESOURCE_DIR)RipStop/preview/*.png $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/preview
402	cp $(RESOURCE_DIR)RipStop/preview/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/preview
403	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/svg
404	cp $(RESOURCE_DIR)RipStop/svg/*.svg $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/svg
405	cp $(RESOURCE_DIR)RipStop/svg/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/svg
406	mkdir $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/toolbar
407	cp $(RESOURCE_DIR)RipStop/toolbar/*.png $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/toolbar
408	cp $(RESOURCE_DIR)RipStop/toolbar/Makefile.am $(BIN)-$(VERSION)/$(RESOURCE_DIR)RipStop/toolbar
409	mkdir $(BIN)-$(VERSION)/$(SOURCE_DIR)
410	mkdir $(BIN)-$(VERSION)/$(SOURCE_DIR)wxMD5
411	mkdir $(BIN)-$(VERSION)/$(SOURCE_DIR)wxSHA1
412	cp $(SOURCE_DIR)Makefile.am $(BIN)-$(VERSION)/$(SOURCE_DIR)
413	cp $(SOURCE_DIR)*.cpp $(BIN)-$(VERSION)/$(SOURCE_DIR)
414	cp $(SOURCE_DIR)*.h $(BIN)-$(VERSION)/$(SOURCE_DIR)
415	cp $(SOURCE_DIR)*.rc $(BIN)-$(VERSION)/$(SOURCE_DIR)
416	cp $(SOURCE_DIR)wxMD5/*.cpp $(BIN)-$(VERSION)/$(SOURCE_DIR)wxMD5
417	cp $(SOURCE_DIR)wxMD5/*.h $(BIN)-$(VERSION)/$(SOURCE_DIR)wxMD5
418	cp $(SOURCE_DIR)wxSHA1/*.cpp $(BIN)-$(VERSION)/$(SOURCE_DIR)wxSHA1
419	cp $(SOURCE_DIR)wxSHA1/*.h $(BIN)-$(VERSION)/$(SOURCE_DIR)wxSHA1
420	mkdir $(BIN)-$(VERSION)/debian
421	cp -f debian/* $(BIN)-$(VERSION)/debian
422	cp bootstrap $(BIN)-$(VERSION)
423	cp AUTHORS $(BIN)-$(VERSION)
424	cp COPYING $(BIN)-$(VERSION)
425	cp README* $(BIN)-$(VERSION)
426	cp ChangeLog* $(BIN)-$(VERSION)
427	cp TODO* $(BIN)-$(VERSION)
428	cp configure.in $(BIN)-$(VERSION)
429	cp Makefile.am $(BIN)-$(VERSION)
430	cp Makefile.gcc $(BIN)-$(VERSION)
431	cp makefile.vc $(BIN)-$(VERSION)
432	cp wxDFast.cbp $(BIN)-$(VERSION)
433
434cleanRelease: tempclean
435	rm -fr $(BUILD_GCC)Release
436
437cleanDebug: tempclean
438	rm -fr $(BUILD_GCC)Debug
439
440distcleanRelease: cleanall
441
442distcleanDebug: cleanall
443
444clean: tempclean
445	rm -fr $(BUILD_GCC)
446
447cleanall: clean
448	rm -fr $(BIN) $(BIN).exe $(BIN)-$(VERSION)-src.tar.gz
449
450tempclean:
451	rm -fr $(BIN)-$(VERSION) debian/wxdfast.postinst.debhelper debian/wxdfast.postrm.debhelper debian/wxdfast.substvars debian/$(BIN) configure-stamp build-stamp
452