]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/make_dist.mk
965f9e7a4e14f84dde8d90eba5605a8cac8b9d9e
[wxWidgets.git] / build / bakefiles / make_dist.mk
1 #
2 # "make dist" target implementation:
3 #
4
5
6 ############################# Dirs #################################
7
8 WXDIR = $(top_srcdir)
9
10 # Subordinate library possibilities
11
12 SRCDIR = $(WXDIR)/src
13 GENDIR = $(WXDIR)/src/generic
14 COMMDIR = $(WXDIR)/src/common
15 HTMLDIR = $(WXDIR)/src/html
16 RICHTEXTDIR = $(WXDIR)/src/richtext
17 AUIDIR = $(WXDIR)/src/aui
18 UNIXDIR = $(WXDIR)/src/unix
19 PNGDIR = $(WXDIR)/src/png
20 JPEGDIR = $(WXDIR)/src/jpeg
21 TIFFDIR = $(WXDIR)/src/tiff
22 ZLIBDIR = $(WXDIR)/src/zlib
23 REGEXDIR = $(WXDIR)/src/regex
24 EXPATDIR = $(WXDIR)/src/expat
25 GTKDIR = $(WXDIR)/src/gtk
26 GTK1DIR = $(WXDIR)/src/gtk1
27 X11DIR = $(WXDIR)/src/x11
28 X11INC = $(WXDIR)/include/wx/x11
29 MGLDIR = $(WXDIR)/src/mgl
30 MOTIFDIR = $(WXDIR)/src/motif
31 MSDOSDIR = $(WXDIR)/src/msdos
32 MSWDIR = $(WXDIR)/src/msw
33 PMDIR = $(WXDIR)/src/os2
34 MACDIR = $(WXDIR)/src/mac
35 COCOADIR = $(WXDIR)/src/cocoa
36 ODBCDIR = $(WXDIR)/src/iodbc
37 FTDIR = $(WXDIR)/src/freetype
38 INCDIR = $(WXDIR)/include
39 SAMPDIR = $(WXDIR)/samples
40 DEMODIR = $(WXDIR)/demos
41 UTILSDIR = $(WXDIR)/utils
42 MISCDIR = $(WXDIR)/misc
43
44 DOCDIR = $(WXDIR)/docs
45 INTLDIR = $(WXDIR)/locale
46
47 TOOLKITDIR = $(TOOLKIT_LOWERCASE)
48
49 ########################## Archive name ###############################
50
51 # append a version suffix x.y.z to all file names
52 WXARCHIVE=@DISTDIR@-$(WX_VERSION).tar.gz
53 WXGLARCHIVE=@DISTDIR@-gl-$(WX_VERSION).tar.gz
54 WXSAMPLES=wx$(TOOLKIT)-samples-$(WX_VERSION).tar.gz
55 WXDEMOS=wx$(TOOLKIT)-demos-$(WX_VERSION).tar.gz
56 WXARCHIVE_ZIP=wxMSW-$(WX_VERSION).zip
57
58 WXARCHIVE_BZIP=@DISTDIR@-$(WX_VERSION).tar.bz2
59 WXGLARCHIVE_BZIP=@DISTDIR@-gl-$(WX_VERSION).tar.bz2
60 WXSAMPLES_BZIP=wx$(TOOLKIT)-samples-$(WX_VERSION).tar.bz2
61 WXDEMOS_BZIP=wx$(TOOLKIT)-demos-$(WX_VERSION).tar.bz2
62
63 DISTDIRNAME=@DISTDIR@-$(WX_VERSION)
64 DISTDIR=./_dist_dir/$(DISTDIRNAME)
65
66 ########################## Tools ###############################
67
68 CP_PR = cp -pR
69 CP_P = cp -p
70
71 ########################## make dist rules ###############################
72
73 # this target should copy only the files common to really all ports (including
74 # wxBase) to the dist dir
75 ALL_DIST: distrib_clean
76 mkdir _dist_dir
77 mkdir $(DISTDIR)
78 $(CP_P) $(WXDIR)/configure.in $(DISTDIR)
79 $(CP_P) $(WXDIR)/configure $(DISTDIR)
80 $(CP_P) $(WXDIR)/autoconf_inc.m4 $(DISTDIR)
81 $(CP_P) $(WXDIR)/wxwin.m4 $(DISTDIR)
82 $(CP_P) $(WXDIR)/acinclude.m4 $(DISTDIR)
83 $(CP_P) $(WXDIR)/aclocal.m4 $(DISTDIR)
84 $(CP_P) $(WXDIR)/config.sub $(DISTDIR)
85 $(CP_P) $(WXDIR)/config.guess $(DISTDIR)
86 $(CP_P) $(WXDIR)/install-sh $(DISTDIR)
87 $(CP_P) $(WXDIR)/mkinstalldirs $(DISTDIR)
88 $(CP_P) $(WXDIR)/wx-config.in $(DISTDIR)
89 $(CP_P) $(WXDIR)/wx-config-inplace.in $(DISTDIR)
90 $(CP_P) $(WXDIR)/version-script.in $(DISTDIR)
91 $(CP_P) $(WXDIR)/setup.h.in $(DISTDIR)
92 $(CP_P) $(WXDIR)/setup.h_vms $(DISTDIR)
93 $(CP_P) $(WXDIR)/descrip.mms $(DISTDIR)
94 $(CP_P) $(WXDIR)/Makefile.in $(DISTDIR)
95 $(CP_P) $(WXDIR)/wxBase.spec $(DISTDIR)
96 $(CP_P) $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
97 $(CP_P) $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
98 $(CP_P) $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
99 mkdir $(DISTDIR)/lib
100 $(CP_P) $(WXDIR)/lib/vms.opt $(DISTDIR)/lib
101 $(CP_P) $(WXDIR)/lib/vms_gtk.opt $(DISTDIR)/lib
102 mkdir $(DISTDIR)/src
103 # temp hack for common/execcmn.cpp: it's not supported by tmake
104 # yet (it's a header-like file but in src/common directory and it
105 # shouldn't be distributed...)
106 mkdir $(DISTDIR)/src/common
107 $(CP_P) $(SRCDIR)/common/execcmn.cpp $(DISTDIR)/src/common
108 mkdir $(DISTDIR)/src/xml
109 $(CP_P) $(SRCDIR)/xml/*.cpp $(DISTDIR)/src/xml
110 mkdir $(DISTDIR)/src/zlib
111 $(CP_P) $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
112 $(CP_P) $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
113 $(CP_P) $(ZLIBDIR)/README $(DISTDIR)/src/zlib
114 #$(CP_P) $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
115 mkdir $(DISTDIR)/src/regex
116 $(CP_P) $(REGEXDIR)/*.h $(DISTDIR)/src/regex
117 $(CP_P) $(REGEXDIR)/*.c $(DISTDIR)/src/regex
118 $(CP_P) $(REGEXDIR)/COPYRIGHT $(DISTDIR)/src/regex
119 $(CP_P) $(REGEXDIR)/README $(DISTDIR)/src/regex
120 $(CP_PR) $(EXPATDIR) $(DISTDIR)/src/expat
121 #(cd $(DISTDIR)/src/expat ; rm -rf `find -name CVS`)
122 mkdir $(DISTDIR)/src/iodbc
123 $(CP_P) $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc
124 $(CP_P) $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc
125 $(CP_P) $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc
126 $(CP_P) $(ODBCDIR)/*.exp $(DISTDIR)/src/iodbc
127 $(CP_P) $(ODBCDIR)/README $(DISTDIR)/src/iodbc
128 $(CP_P) $(ODBCDIR)/NEWS $(DISTDIR)/src/iodbc
129 $(CP_P) $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
130 # copy some files from include/ that are not installed:
131 mkdir $(DISTDIR)/include
132 mkdir $(DISTDIR)/include/wx
133 $(CP_P) $(INCDIR)/wx/fmappriv.h $(DISTDIR)/include/wx
134 # copy wxpresets
135 mkdir $(DISTDIR)/build
136 mkdir $(DISTDIR)/build/bakefiles
137 mkdir $(DISTDIR)/build/bakefiles/wxpresets
138 mkdir $(DISTDIR)/build/bakefiles/wxpresets/presets
139 mkdir $(DISTDIR)/build/bakefiles/wxpresets/sample
140 $(CP_P) $(WXDIR)/build/bakefiles/wxpresets/presets/*.bkl $(DISTDIR)/build/bakefiles/wxpresets/presets
141 $(CP_P) $(WXDIR)/build/bakefiles/wxpresets/sample/minimal* $(DISTDIR)/build/bakefiles/wxpresets/sample
142 $(CP_P) $(WXDIR)/build/bakefiles/wxpresets/sample/config* $(DISTDIR)/build/bakefiles/wxpresets/sample
143 $(CP_P) $(WXDIR)/build/bakefiles/wxpresets/*.txt $(DISTDIR)/build/bakefiles/wxpresets
144 mkdir $(DISTDIR)/build/aclocal
145 $(CP_P) $(WXDIR)/build/aclocal/*.m4 $(DISTDIR)/build/aclocal
146
147 # this target is the common part of distribution script for all GUI toolkits,
148 # but is not used when building wxBase distribution
149 ALL_GUI_DIST: ALL_DIST
150 $(CP_P) $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
151 $(CP_P) $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
152 if test -f $(DOCDIR)/$(TOOLKITDIR)/changes.txt ; then \
153 $(CP_P) $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES-$(TOOLKIT).txt ; fi
154 $(CP_P) $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README-$(TOOLKIT).txt
155 if test -f $(DOCDIR)/$(TOOLKITDIR)/todo.txt ; then \
156 $(CP_P) $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt ; fi
157 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
158 mkdir $(DISTDIR)/include/wx/generic
159 mkdir $(DISTDIR)/include/wx/html
160 mkdir $(DISTDIR)/include/wx/richtext
161 mkdir $(DISTDIR)/include/wx/aui
162 mkdir $(DISTDIR)/include/wx/protocol
163 mkdir $(DISTDIR)/include/wx/unix
164 mkdir $(DISTDIR)/include/wx/xml
165 mkdir $(DISTDIR)/include/wx/xrc
166 -$(CP_P) $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
167 $(CP_P) $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
168 $(CP_P) $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
169 $(CP_P) $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
170 $(CP_P) $(INCDIR)/wx/richtext/*.h $(DISTDIR)/include/wx/richtext
171 $(CP_P) $(INCDIR)/wx/aui/*.h $(DISTDIR)/include/wx/aui
172 $(CP_P) $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
173 $(CP_P) $(INCDIR)/wx/xml/*.h $(DISTDIR)/include/wx/xml
174 $(CP_P) $(INCDIR)/wx/xrc/*.h $(DISTDIR)/include/wx/xrc
175 $(CP_P) $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
176 mkdir $(DISTDIR)/art
177 mkdir $(DISTDIR)/art/gtk
178 mkdir $(DISTDIR)/art/motif
179 $(CP_P) $(WXDIR)/art/*.xpm $(DISTDIR)/art
180 $(CP_P) $(WXDIR)/art/gtk/*.xpm $(DISTDIR)/art/gtk
181 $(CP_P) $(WXDIR)/art/motif/*.xpm $(DISTDIR)/art/motif
182 mkdir $(DISTDIR)/src/generic
183 mkdir $(DISTDIR)/src/html
184 mkdir $(DISTDIR)/src/richtext
185 mkdir $(DISTDIR)/src/aui
186 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
187 mkdir $(DISTDIR)/src/png
188 mkdir $(DISTDIR)/src/jpeg
189 mkdir $(DISTDIR)/src/tiff
190 mkdir $(DISTDIR)/src/unix
191 mkdir $(DISTDIR)/src/xrc
192 $(CP_P) $(SRCDIR)/xrc/*.cpp $(DISTDIR)/src/xrc
193 -$(CP_P) $(COMMDIR)/*.cpp $(DISTDIR)/src/common
194 $(CP_P) $(COMMDIR)/*.c $(DISTDIR)/src/common
195 $(CP_P) $(COMMDIR)/*.inc $(DISTDIR)/src/common
196 $(CP_P) $(COMMDIR)/*.mms $(DISTDIR)/src/common
197 $(CP_P) $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
198 $(CP_P) $(UNIXDIR)/*.mms $(DISTDIR)/src/unix
199 $(CP_P) $(GENDIR)/*.cpp $(DISTDIR)/src/generic
200 $(CP_P) $(GENDIR)/*.mms $(DISTDIR)/src/generic
201 $(CP_P) $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
202 $(CP_P) $(RICHTEXTDIR)/*.cpp $(DISTDIR)/src/richtext
203 $(CP_P) $(AUIDIR)/*.cpp $(DISTDIR)/src/aui
204 $(CP_P) $(PNGDIR)/*.h $(DISTDIR)/src/png
205 $(CP_P) $(PNGDIR)/*.c $(DISTDIR)/src/png
206 $(CP_P) $(PNGDIR)/README $(DISTDIR)/src/png
207 $(CP_P) $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
208 $(CP_P) $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
209 $(CP_P) $(JPEGDIR)/README $(DISTDIR)/src/jpeg
210 $(CP_P) $(TIFFDIR)/*.h $(DISTDIR)/src/tiff
211 $(CP_P) $(TIFFDIR)/*.c $(DISTDIR)/src/tiff
212 $(CP_P) $(TIFFDIR)/README $(DISTDIR)/src/tiff
213
214 BASE_DIST: ALL_DIST
215 # make --disable-gui the default
216 rm $(DISTDIR)/configure.in
217 sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
218 $(WXDIR)/configure.in > $(DISTDIR)/configure.in
219 rm $(DISTDIR)/configure
220 sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \
221 $(WXDIR)/configure > $(DISTDIR)/configure
222 chmod +x $(DISTDIR)/configure
223 mkdir $(DISTDIR)/include/wx/protocol
224 mkdir $(DISTDIR)/include/wx/unix
225 mkdir $(DISTDIR)/include/wx/xml
226 mkdir $(DISTDIR)/include/wx/msdos
227 mkdir $(DISTDIR)/include/wx/msw
228 mkdir $(DISTDIR)/include/wx/html
229 mkdir $(DISTDIR)/include/wx/richtext
230 mkdir $(DISTDIR)/include/wx/aui
231 mkdir $(DISTDIR)/include/wx/mac
232 mkdir $(DISTDIR)/include/wx/mac/carbon
233 mkdir $(DISTDIR)/include/wx/mac/corefoundation
234 mkdir $(DISTDIR)/include/wx/os2
235 mkdir $(DISTDIR)/include/wx/palmos
236 mkdir $(DISTDIR)/src/unix
237 mkdir $(DISTDIR)/src/mac
238 mkdir $(DISTDIR)/src/mac/corefoundation
239 mkdir $(DISTDIR)/src/mac/carbon
240 mkdir $(DISTDIR)/src/mac/carbon/morefilex
241 mkdir $(DISTDIR)/src/msdos
242 mkdir $(DISTDIR)/src/msw
243 mkdir $(DISTDIR)/src/os2
244 mkdir $(DISTDIR)/src/palmos
245 $(CP_P) $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
246 $(CP_P) $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
247 $(CP_P) $(WXDIR)/src/common/base.rc $(DISTDIR)/src/common
248 list='$(ALL_PORTS_BASE_HEADERS)'; for p in $$list; do \
249 $(CP_P) $(WXDIR)/include/$$p $(DISTDIR)/include/$$p; \
250 done
251 list='$(ALL_BASE_SOURCES)'; for p in $$list; do \
252 $(CP_P) $(WXDIR)/$$p $(DISTDIR)/$$p; \
253 done
254
255 mkdir $(DISTDIR)/samples
256 $(CP_P) $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
257
258 mkdir $(DISTDIR)/samples/console
259 $(CP_P) $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
260 $(CP_P) $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
261 $(CP_P) $(SAMPDIR)/console/console.cpp $(DISTDIR)/samples/console
262 $(CP_P) $(SAMPDIR)/console/console.dsp $(DISTDIR)/samples/console
263 $(CP_P) $(SAMPDIR)/console/testdata.fc $(DISTDIR)/samples/console
264
265 mkdir $(DISTDIR)/utils
266 mkdir $(DISTDIR)/utils/HelpGen
267 mkdir $(DISTDIR)/utils/HelpGen/src
268 $(CP_P) $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
269 $(CP_P) $(UTILSDIR)/HelpGen/src/Makefile.in $(DISTDIR)/utils/HelpGen/src
270 $(CP_P) $(UTILSDIR)/HelpGen/src/*.h $(DISTDIR)/utils/HelpGen/src
271 $(CP_P) $(UTILSDIR)/HelpGen/src/*.cpp $(DISTDIR)/utils/HelpGen/src
272
273 mkdir $(DISTDIR)/utils/tex2rtf
274 mkdir $(DISTDIR)/utils/tex2rtf/src
275 $(CP_P) $(UTILSDIR)/tex2rtf/*.in $(DISTDIR)/utils/tex2rtf
276 $(CP_P) $(UTILSDIR)/tex2rtf/src/*.h $(DISTDIR)/utils/tex2rtf/src
277 $(CP_P) $(UTILSDIR)/tex2rtf/src/*.in $(DISTDIR)/utils/tex2rtf/src
278 $(CP_P) $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
279 $(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.ico $(DISTDIR)/utils/tex2rtf/src
280 $(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.ini $(DISTDIR)/utils/tex2rtf/src
281 $(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.rc $(DISTDIR)/utils/tex2rtf/src
282 $(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.xpm $(DISTDIR)/utils/tex2rtf/src
283
284 GTK_DIST: UNIV_DIST
285 $(CP_P) $(WXDIR)/wxGTK.spec $(DISTDIR)
286 $(CP_P) $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
287 $(CP_P) $(GTKDIR)/*.h $(DISTDIR)/src/gtk
288 $(CP_P) $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
289 $(CP_P) $(GTKDIR)/*.c $(DISTDIR)/src/gtk
290 $(CP_P) $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
291 $(CP_P) $(GTKDIR)/*.mms $(DISTDIR)/src/gtk
292 mkdir $(DISTDIR)/include/wx/gtk1
293 $(CP_P) $(INCDIR)/wx/gtk1/*.h $(DISTDIR)/include/wx/gtk1
294 mkdir $(DISTDIR)/src/gtk1
295 $(CP_P) $(GTK1DIR)/*.h $(DISTDIR)/src/gtk1
296 $(CP_P) $(GTK1DIR)/*.cpp $(DISTDIR)/src/gtk1
297 $(CP_P) $(GTK1DIR)/*.c $(DISTDIR)/src/gtk1
298 $(CP_P) $(GTK1DIR)/*.xbm $(DISTDIR)/src/gtk1
299 $(CP_P) $(GTK1DIR)/*.mms $(DISTDIR)/src/gtk1
300
301 mkdir $(DISTDIR)/include/wx/gtk/gnome
302 mkdir $(DISTDIR)/src/gtk/gnome
303 $(CP_P) $(INCDIR)/wx/gtk/gnome/*.h $(DISTDIR)/include/wx/gtk/gnome
304 $(CP_P) $(GTKDIR)/gnome/*.cpp $(DISTDIR)/src/gtk/gnome
305
306 mkdir $(DISTDIR)/src/mac
307 mkdir $(DISTDIR)/src/mac/corefoundation
308 $(CP_P) $(WXDIR)/src/mac/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
309 mkdir $(DISTDIR)/include/wx/mac
310 mkdir $(DISTDIR)/include/wx/mac/corefoundation
311 $(CP_P) $(WXDIR)/include/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
312
313 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
314
315 X11_DIST: UNIV_DIST
316 $(CP_P) $(WXDIR)/wxX11.spec $(DISTDIR)
317 $(CP_P) $(INCDIR)/wx/x11/*.h $(DISTDIR)/include/wx/x11
318 $(CP_P) $(X11DIR)/*.cpp $(DISTDIR)/src/x11
319 $(CP_P) $(X11DIR)/*.c $(DISTDIR)/src/x11
320 $(CP_P) $(X11DIR)/*.xbm $(DISTDIR)/src/x11
321 mkdir $(DISTDIR)/src/mac
322 mkdir $(DISTDIR)/src/mac/corefoundation
323 $(CP_P) $(WXDIR)/src/mac/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
324 mkdir $(DISTDIR)/include/wx/mac
325 mkdir $(DISTDIR)/include/wx/mac/corefoundation
326 $(CP_P) $(WXDIR)/include/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
327 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
328
329 MOTIF_DIST: ALL_GUI_DIST
330 $(CP_P) $(WXDIR)/wxMotif.spec $(DISTDIR)
331 $(CP_P) $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
332 $(CP_P) $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
333 $(CP_P) $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
334 mkdir $(DISTDIR)/src/motif/xmcombo
335 $(CP_P) $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
336 $(CP_P) $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
337 $(CP_P) $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
338 mkdir $(DISTDIR)/src/x11
339 mkdir $(DISTDIR)/include/wx/x11
340 $(CP_P) $(X11DIR)/pen.cpp $(X11DIR)/brush.cpp $(X11DIR)/utilsx.cpp \
341 $(X11DIR)/bitmap.cpp $(X11DIR)/glcanvas.cpp $(X11DIR)/region.cpp \
342 $(DISTDIR)/src/x11
343 $(CP_P) $(X11INC)/pen.h $(X11INC)/brush.h $(X11INC)/privx.h \
344 $(X11INC)/bitmap.h $(X11INC)/glcanvas.h $(X11INC)/private.h $(X11INC)/region.h \
345 $(DISTDIR)/include/wx/x11
346 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
347
348 MACX_DIST: ALL_GUI_DIST
349 $(CP_P) $(INCDIR)/*.* $(DISTDIR)/include
350 mkdir $(DISTDIR)/include/wx/mac/carbon
351 mkdir $(DISTDIR)/include/wx/mac/private
352 mkdir $(DISTDIR)/include/wx/mac/carbon/private
353 $(CP_P) $(INCDIR)/wx/mac/*.h $(DISTDIR)/include/wx/mac
354 $(CP_P) $(INCDIR)/wx/mac/carbon/*.h $(DISTDIR)/include/wx/mac/carbon
355 $(CP_P) $(INCDIR)/wx/mac/carbon/private/*.h $(DISTDIR)/include/wx/mac/carbon/private
356 $(CP_P) $(INCDIR)/wx/mac/private/*.h $(DISTDIR)/include/wx/mac/private
357 mkdir $(DISTDIR)/include/wx/mac/corefoundation
358 $(CP_P) $(INCDIR)/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
359 mkdir $(DISTDIR)/src/mac/corefoundation
360 $(CP_P) $(MACDIR)/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
361 mkdir $(DISTDIR)/src/html/htmlctrl
362 mkdir $(DISTDIR)/src/html/htmlctrl/webkit
363 $(CP_P) $(WXDIR)/src/html/htmlctrl/webkit/*.mm $(DISTDIR)/src/html/htmlctrl/webkit
364 mkdir $(DISTDIR)/src/mac/carbon
365 $(CP_P) $(MACDIR)/carbon/*.cpp $(DISTDIR)/src/mac/carbon
366 $(CP_P) $(MACDIR)/carbon/*.mm $(DISTDIR)/src/mac/carbon
367 $(CP_P) $(MACDIR)/carbon/*.icns $(DISTDIR)/src/mac/carbon
368 $(CP_P) $(MACDIR)/carbon/Info.plist.in $(DISTDIR)/src/mac/carbon
369 $(CP_P) $(MACDIR)/carbon/*.h $(DISTDIR)/src/mac/carbon
370 $(CP_P) $(MACDIR)/carbon/*.r $(DISTDIR)/src/mac/carbon
371 mkdir $(DISTDIR)/src/mac/carbon/morefile
372 $(CP_P) $(MACDIR)/carbon/morefile/*.h $(DISTDIR)/src/mac/carbon/morefile
373 $(CP_P) $(MACDIR)/carbon/morefile/*.c $(DISTDIR)/src/mac/carbon/morefile
374 mkdir $(DISTDIR)/src/mac/carbon/morefilex
375 $(CP_P) $(MACDIR)/carbon/morefilex/*.h $(DISTDIR)/src/mac/carbon/morefilex
376 $(CP_P) $(MACDIR)/carbon/morefilex/*.c $(DISTDIR)/src/mac/carbon/morefilex
377 $(CP_P) $(MACDIR)/carbon/morefilex/*.cpp $(DISTDIR)/src/mac/carbon/morefilex
378 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
379
380 COCOA_DIST: ALL_GUI_DIST
381 $(CP_P) $(INCDIR)/wx/cocoa/*.h $(DISTDIR)/include/wx/cocoa
382 $(CP_P) $(COCOADIR)/*.mm $(DISTDIR)/src/cocoa
383 $(CP_P) $(COCOADIR)/*.cpp $(DISTDIR)/src/cocoa
384 $(CP_P) $(COCOADIR)/*.r $(DISTDIR)/src/cocoa
385 mkdir $(DISTDIR)/include/wx/mac/corefoundation
386 $(CP_P) $(INCDIR)/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
387 mkdir $(DISTDIR)/src/mac/corefoundation
388 $(CP_P) $(MACDIR)/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
389 mkdir $(DISTDIR)/src/mac/carbon
390 $(CP_P) $(MACDIR)/carbon/Info.plist.in $(DISTDIR)/src/mac/carbon
391 $(CP_P) $(MACDIR)/carbon/wxmac.icns $(DISTDIR)/src/mac/carbon
392 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
393
394 MSW_DIST: UNIV_DIST
395 $(CP_P) $(WXDIR)/wxWINE.spec $(DISTDIR)
396 mkdir $(DISTDIR)/include/wx/msw/ole
397 mkdir $(DISTDIR)/include/wx/msw/wince
398 $(CP_P) $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
399 $(CP_P) $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
400 $(CP_P) $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
401 $(CP_P) $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
402 $(CP_P) $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
403 $(CP_P) $(INCDIR)/wx/msw/*.manifest $(DISTDIR)/include/wx/msw
404 $(CP_P) $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
405 $(CP_P) $(INCDIR)/wx/msw/wince/*.h $(DISTDIR)/include/wx/msw/wince
406 mkdir $(DISTDIR)/src/msw/ole
407 mkdir $(DISTDIR)/src/msw/wince
408 $(CP_P) $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
409 $(CP_P) $(MSWDIR)/*.c $(DISTDIR)/src/msw
410 $(CP_P) $(MSWDIR)/*.rc $(DISTDIR)/src/msw
411 $(CP_P) $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
412 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
413
414 MSW_ZIP_TEXT_DIST: ALL_GUI_DIST
415 $(CP_P) $(WXDIR)/wxWINE.spec $(DISTDIR)
416 mkdir $(DISTDIR)/include/wx/msw
417 mkdir $(DISTDIR)/include/wx/msw/ole
418 mkdir $(DISTDIR)/include/wx/msw/wince
419 $(CP_P) $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
420 $(CP_P) $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
421 $(CP_P) $(INCDIR)/wx/msw/*.manifest $(DISTDIR)/include/wx/msw
422 $(CP_P) $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
423 $(CP_P) $(INCDIR)/wx/msw/wince/*.h $(DISTDIR)/include/wx/msw/wince
424 mkdir $(DISTDIR)/src/msw
425 mkdir $(DISTDIR)/src/msw/ole
426 mkdir $(DISTDIR)/src/msw/wince
427 $(CP_P) $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
428 $(CP_P) $(MSWDIR)/*.c $(DISTDIR)/src/msw
429 $(CP_P) $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
430 $(CP_P) $(MSWDIR)/wince/*.* $(DISTDIR)/src/msw/wince
431 $(CP_P) $(SRCDIR)/*.??? $(DISTDIR)/src
432 $(CP_P) $(SRCDIR)/*.?? $(DISTDIR)/src
433 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
434
435 UNIV_DIST: ALL_GUI_DIST
436 mkdir $(DISTDIR)/include/wx/univ
437 mkdir $(DISTDIR)/src/univ
438 mkdir $(DISTDIR)/src/univ/themes
439 $(CP_P) $(INCDIR)/wx/univ/*.h $(DISTDIR)/include/wx/univ
440 $(CP_P) $(INCDIR)/wx/univ/setup0.h $(DISTDIR)/include/wx/univ/setup.h
441 $(CP_P) $(SRCDIR)/univ/*.cpp $(DISTDIR)/src/univ
442 $(CP_P) $(SRCDIR)/univ/themes/*.cpp $(DISTDIR)/src/univ/themes
443
444 MGL_DIST: UNIV_DIST
445 $(CP_P) $(WXDIR)/wxMGL.spec $(DISTDIR)
446 $(CP_P) $(INCDIR)/wx/mgl/*.h $(DISTDIR)/include/wx/mgl
447 mkdir $(DISTDIR)/include/wx/msdos
448 $(CP_P) $(INCDIR)/wx/msdos/*.h $(DISTDIR)/include/wx/msdos
449 $(CP_P) $(SRCDIR)/mgl/make* $(DISTDIR)/src/mgl
450 $(CP_P) $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl
451 mkdir $(DISTDIR)/src/msdos
452 $(CP_P) $(SRCDIR)/msdos/*.cpp $(DISTDIR)/src/msdos
453 $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib
454
455 DEMOS_DIST: ALL_GUI_DIST
456 mkdir $(DISTDIR)/demos
457 $(CP_P) $(DEMODIR)/Makefile.in $(DISTDIR)/demos
458
459 mkdir $(DISTDIR)/demos/bombs
460 $(CP_P) $(DEMODIR)/bombs/Makefile.in $(DISTDIR)/demos/bombs
461 $(CP_P) $(DEMODIR)/bombs/makefile.unx $(DISTDIR)/demos/bombs
462 $(CP_P) $(DEMODIR)/bombs/*.cpp $(DISTDIR)/demos/bombs
463 $(CP_P) $(DEMODIR)/bombs/*.h $(DISTDIR)/demos/bombs
464 $(CP_P) $(DEMODIR)/bombs/*.xpm $(DISTDIR)/demos/bombs
465 $(CP_P) $(DEMODIR)/bombs/*.ico $(DISTDIR)/demos/bombs
466 $(CP_P) $(DEMODIR)/bombs/*.rc $(DISTDIR)/demos/bombs
467 $(CP_P) $(DEMODIR)/bombs/readme.txt $(DISTDIR)/demos/bombs
468
469 $(CP_PR) $(DEMODIR)/dbbrowse $(DISTDIR)/demos/dbbrowse
470
471 mkdir $(DISTDIR)/demos/forty
472 $(CP_P) $(DEMODIR)/forty/Makefile.in $(DISTDIR)/demos/forty
473 $(CP_P) $(DEMODIR)/forty/makefile.unx $(DISTDIR)/demos/forty
474 $(CP_P) $(DEMODIR)/forty/*.h $(DISTDIR)/demos/forty
475 $(CP_P) $(DEMODIR)/forty/*.cpp $(DISTDIR)/demos/forty
476 $(CP_P) $(DEMODIR)/forty/*.xpm $(DISTDIR)/demos/forty
477 $(CP_P) $(DEMODIR)/forty/*.htm $(DISTDIR)/demos/forty
478 $(CP_P) $(DEMODIR)/forty/*.ico $(DISTDIR)/demos/forty
479 $(CP_P) $(DEMODIR)/forty/*.rc $(DISTDIR)/demos/forty
480 $(CP_P) $(DEMODIR)/forty/readme.txt $(DISTDIR)/demos/forty
481
482 mkdir $(DISTDIR)/demos/life
483 mkdir $(DISTDIR)/demos/life/bitmaps
484 $(CP_P) $(DEMODIR)/life/Makefile.in $(DISTDIR)/demos/life
485 $(CP_P) $(DEMODIR)/life/makefile.unx $(DISTDIR)/demos/life
486 $(CP_P) $(DEMODIR)/life/*.cpp $(DISTDIR)/demos/life
487 $(CP_P) $(DEMODIR)/life/*.h $(DISTDIR)/demos/life
488 $(CP_P) $(DEMODIR)/life/*.xpm $(DISTDIR)/demos/life
489 $(CP_P) $(DEMODIR)/life/*.inc $(DISTDIR)/demos/life
490 $(CP_P) $(DEMODIR)/life/*.lif $(DISTDIR)/demos/life
491 $(CP_P) $(DEMODIR)/life/*.rc $(DISTDIR)/demos/life
492 $(CP_P) $(DEMODIR)/life/*.ico $(DISTDIR)/demos/life
493 $(CP_P) $(DEMODIR)/life/bitmaps/*.xpm $(DISTDIR)/demos/life/bitmaps
494 $(CP_P) $(DEMODIR)/life/bitmaps/*.bmp $(DISTDIR)/demos/life/bitmaps
495
496 mkdir $(DISTDIR)/demos/poem
497 $(CP_P) $(DEMODIR)/poem/Makefile.in $(DISTDIR)/demos/poem
498 $(CP_P) $(DEMODIR)/poem/makefile.unx $(DISTDIR)/demos/poem
499 $(CP_P) $(DEMODIR)/poem/*.h $(DISTDIR)/demos/poem
500 $(CP_P) $(DEMODIR)/poem/*.cpp $(DISTDIR)/demos/poem
501 $(CP_P) $(DEMODIR)/poem/*.xpm $(DISTDIR)/demos/poem
502 $(CP_P) $(DEMODIR)/poem/*.dat $(DISTDIR)/demos/poem
503 $(CP_P) $(DEMODIR)/poem/*.txt $(DISTDIR)/demos/poem
504 $(CP_P) $(DEMODIR)/poem/*.rc $(DISTDIR)/demos/poem
505 $(CP_P) $(DEMODIR)/poem/*.ico $(DISTDIR)/demos/poem
506
507 mkdir $(DISTDIR)/demos/fractal
508 $(CP_P) $(DEMODIR)/fractal/Makefile.in $(DISTDIR)/demos/fractal
509 $(CP_P) $(DEMODIR)/fractal/makefile.unx $(DISTDIR)/demos/fractal
510 $(CP_P) $(DEMODIR)/fractal/*.cpp $(DISTDIR)/demos/fractal
511 $(CP_P) $(DEMODIR)/fractal/*.rc $(DISTDIR)/demos/fractal
512 $(CP_P) $(DEMODIR)/fractal/*.ico $(DISTDIR)/demos/fractal
513
514 SAMPLES_DIST: ALL_GUI_DIST
515 mkdir $(DISTDIR)/samples
516 $(CP_P) $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
517 $(CP_P) $(SAMPDIR)/sample.* $(DISTDIR)/samples
518
519 # copy files common to all samples in a general way
520 for s in `find $(SAMPDIR) $(SAMPDIR)/html $(SAMPDIR)/mobile $(SAMPDIR)/opengl \
521 -mindepth 1 -maxdepth 1 -type d -not -name CVS`; do \
522 t="$(DISTDIR)/samples/`echo $$s | sed 's@$(SAMPDIR)/@@'`"; \
523 mkdir -p $$t; \
524 $(CP_P) $$s/Makefile.in \
525 `find $$s -name 'makefile.*' -o -name descrip.mms -o \
526 -name '*.cpp' -o -name '*.h' -o \
527 -name '*.bmp' -o -name '*.ico' -o -name '*.png' -o \
528 -name '*.rc' -o -name '*.xpm'` $$t; \
529 i=""; \
530 if [ -d $$s/bitmaps ]; then i="bitmaps"; fi; \
531 if [ -d $$s/icons ]; then i="icons"; fi; \
532 if [ -n "$$i" ]; then \
533 mkdir $$t/$$i; \
534 cp `find $$s/$$i -name '*.bmp' -o -name '*.xpm'` $$t/$$i; \
535 fi; \
536 done
537
538 # copy the rest, not covered by the above loop
539 $(CP_P) $(SAMPDIR)/console/testdata.fc $(DISTDIR)/samples/console
540
541 $(CP_P) $(SAMPDIR)/dialogs/tips.txt $(DISTDIR)/samples/dialogs
542
543 $(CP_P) $(SAMPDIR)/dnd/d_and_d.txt $(DISTDIR)/samples/dnd
544
545 mkdir $(DISTDIR)/samples/help/doc
546 $(CP_P) $(SAMPDIR)/help/*.h?? $(DISTDIR)/samples/help
547 $(CP_P) $(SAMPDIR)/help/*.gif $(DISTDIR)/samples/help
548 $(CP_P) $(SAMPDIR)/help/cshelp.txt $(DISTDIR)/samples/help
549 $(CP_P) $(SAMPDIR)/help/*.chm $(DISTDIR)/samples/help
550 $(CP_P) $(SAMPDIR)/help/*.cnt $(DISTDIR)/samples/help
551 $(CP_P) $(SAMPDIR)/help/doc.zip $(DISTDIR)/samples/help
552 $(CP_P) $(SAMPDIR)/help/doc/*.* $(DISTDIR)/samples/help/doc
553
554 mkdir $(DISTDIR)/samples/html/about/data
555 $(CP_P) $(SAMPDIR)/html/about/data/*.htm $(DISTDIR)/samples/html/about/data
556 $(CP_P) $(SAMPDIR)/html/about/data/*.png $(DISTDIR)/samples/html/about/data
557 mkdir $(DISTDIR)/samples/html/help/helpfiles
558 $(CP_P) $(SAMPDIR)/html/help/helpfiles/*.??? $(DISTDIR)/samples/html/help/helpfiles
559 $(CP_P) $(SAMPDIR)/html/helpview/*.zip $(DISTDIR)/samples/html/helpview
560 $(CP_P) $(SAMPDIR)/html/printing/*.htm $(DISTDIR)/samples/html/printing
561 $(CP_P) $(SAMPDIR)/html/printing/*.gif $(DISTDIR)/samples/html/printing
562 $(CP_P) $(SAMPDIR)/html/test/*.gif $(DISTDIR)/samples/html/test
563 $(CP_P) $(SAMPDIR)/html/test/*.htm $(DISTDIR)/samples/html/test
564 $(CP_P) $(SAMPDIR)/html/test/*.html $(DISTDIR)/samples/html/test
565 $(CP_P) $(SAMPDIR)/html/virtual/*.htm $(DISTDIR)/samples/html/virtual
566 $(CP_P) $(SAMPDIR)/html/widget/*.htm $(DISTDIR)/samples/html/widget
567 $(CP_P) $(SAMPDIR)/html/zip/*.htm $(DISTDIR)/samples/html/zip
568 $(CP_P) $(SAMPDIR)/html/zip/*.zip $(DISTDIR)/samples/html/zip
569
570 $(CP_P) $(SAMPDIR)/image/horse*.* $(DISTDIR)/samples/image
571 $(CP_P) $(SAMPDIR)/image/smile.xbm $(DISTDIR)/samples/image
572
573 $(CP_P) $(SAMPDIR)/internat/readme.txt $(DISTDIR)/samples/internat
574 for f in `(cd $(SAMPDIR); find internat -name '*.[mp]o' -print)`; do \
575 mkdir -p $(DISTDIR)/samples/`dirname $$f`; \
576 $(CP_P) $(SAMPDIR)/$$f $(DISTDIR)/samples/$$f; \
577 done
578
579 $(CP_P) $(SAMPDIR)/joytest/*.wav $(DISTDIR)/samples/joytest
580
581 $(CP_P) $(SAMPDIR)/mobile/styles/*.jpg $(DISTDIR)/samples/mobile/styles
582
583 $(CP_P) $(SAMPDIR)/opengl/penguin/trackball.c $(DISTDIR)/samples/opengl/penguin
584 $(CP_P) $(SAMPDIR)/opengl/penguin/*.dxf.gz $(DISTDIR)/samples/opengl/penguin
585 $(CP_P) $(SAMPDIR)/opengl/isosurf/*.gz $(DISTDIR)/samples/opengl/isosurf
586
587 $(CP_P) $(SAMPDIR)/richtext/readme.txt $(DISTDIR)/samples/richtext
588 $(CP_P) $(SAMPDIR)/richtext/todo.txt $(DISTDIR)/samples/richtext
589
590 $(CP_P) $(SAMPDIR)/sound/*.wav $(DISTDIR)/samples/sound
591
592 $(CP_P) $(SAMPDIR)/splash/*.mpg $(DISTDIR)/samples/splash
593
594 mkdir $(DISTDIR)/samples/xrc/rc
595 $(CP_P) $(SAMPDIR)/xrc/rc/*.xpm $(DISTDIR)/samples/xrc/rc
596 $(CP_P) $(SAMPDIR)/xrc/rc/*.xrc $(DISTDIR)/samples/xrc/rc
597 $(CP_P) $(SAMPDIR)/xrc/rc/*.gif $(DISTDIR)/samples/xrc/rc
598 $(CP_P) $(SAMPDIR)/xrc/rc/*.ico $(DISTDIR)/samples/xrc/rc
599
600 UTILS_DIST: ALL_GUI_DIST
601 mkdir $(DISTDIR)/utils
602 $(CP_P) $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
603
604 mkdir $(DISTDIR)/utils/tex2rtf
605 mkdir $(DISTDIR)/utils/tex2rtf/src
606 $(CP_P) $(UTILSDIR)/tex2rtf/*.in $(DISTDIR)/utils/tex2rtf
607 $(CP_P) $(UTILSDIR)/tex2rtf/src/*.h $(DISTDIR)/utils/tex2rtf/src
608 $(CP_P) $(UTILSDIR)/tex2rtf/src/*.in $(DISTDIR)/utils/tex2rtf/src
609 $(CP_P) $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
610 -$(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src
611
612 mkdir $(DISTDIR)/utils/configtool
613 mkdir $(DISTDIR)/utils/configtool/configs
614 mkdir $(DISTDIR)/utils/configtool/docs
615 mkdir $(DISTDIR)/utils/configtool/src
616 mkdir $(DISTDIR)/utils/configtool/src/bitmaps
617 mkdir $(DISTDIR)/utils/configtool/scripts
618 $(CP_P) $(UTILSDIR)/configtool/*.in $(DISTDIR)/utils/configtool
619 $(CP_P) $(UTILSDIR)/configtool/configs/*.wxs $(DISTDIR)/utils/configtool/configs
620 $(CP_P) $(UTILSDIR)/configtool/docs/*.txt $(DISTDIR)/utils/configtool/docs
621 $(CP_P) $(UTILSDIR)/configtool/src/*.h $(DISTDIR)/utils/configtool/src
622 $(CP_P) $(UTILSDIR)/configtool/src/*.in $(DISTDIR)/utils/configtool/src
623 $(CP_P) $(UTILSDIR)/configtool/src/*.cpp $(DISTDIR)/utils/configtool/src
624 $(CP_P) $(UTILSDIR)/configtool/src/bitmaps/*.xpm $(DISTDIR)/utils/configtool/src/bitmaps
625 $(CP_P) $(UTILSDIR)/configtool/scripts/????* $(DISTDIR)/utils/configtool/scripts
626
627 mkdir $(DISTDIR)/utils/emulator
628 mkdir $(DISTDIR)/utils/emulator/src
629 mkdir $(DISTDIR)/utils/emulator/docs
630 $(CP_P) $(UTILSDIR)/emulator/*.in $(DISTDIR)/utils/emulator
631 $(CP_P) $(UTILSDIR)/emulator/src/*.h $(DISTDIR)/utils/emulator/src
632 $(CP_P) $(UTILSDIR)/emulator/src/*.in $(DISTDIR)/utils/emulator/src
633 $(CP_P) $(UTILSDIR)/emulator/src/*.cpp $(DISTDIR)/utils/emulator/src
634 $(CP_P) $(UTILSDIR)/emulator/src/*.jpg $(DISTDIR)/utils/emulator/src
635 $(CP_P) $(UTILSDIR)/emulator/src/*.wxe $(DISTDIR)/utils/emulator/src
636 $(CP_P) $(UTILSDIR)/emulator/src/*.xpm $(DISTDIR)/utils/emulator/src
637 $(CP_P) $(UTILSDIR)/emulator/docs/*.txt $(DISTDIR)/utils/emulator/docs
638 $(CP_P) $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
639
640 mkdir $(DISTDIR)/utils/hhp2cached
641 $(CP_P) $(UTILSDIR)/hhp2cached/Makefile.in $(DISTDIR)/utils/hhp2cached
642 $(CP_P) $(UTILSDIR)/hhp2cached/*.cpp $(DISTDIR)/utils/hhp2cached
643 $(CP_P) $(UTILSDIR)/hhp2cached/*.rc $(DISTDIR)/utils/hhp2cached
644
645 mkdir $(DISTDIR)/utils/HelpGen
646 mkdir $(DISTDIR)/utils/HelpGen/src
647 $(CP_P) $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
648 $(CP_P) $(UTILSDIR)/HelpGen/src/Makefile.in $(DISTDIR)/utils/HelpGen/src
649 $(CP_P) $(UTILSDIR)/HelpGen/src/*.h $(DISTDIR)/utils/HelpGen/src
650 $(CP_P) $(UTILSDIR)/HelpGen/src/*.cpp $(DISTDIR)/utils/HelpGen/src
651
652 mkdir $(DISTDIR)/utils/helpview
653 mkdir $(DISTDIR)/utils/helpview/src
654 mkdir $(DISTDIR)/utils/helpview/src/bitmaps
655 $(CP_P) $(UTILSDIR)/helpview/Makefile.in $(DISTDIR)/utils/helpview
656 $(CP_P) $(UTILSDIR)/helpview/src/*.h $(DISTDIR)/utils/helpview/src
657 $(CP_P) $(UTILSDIR)/helpview/src/*.cpp $(DISTDIR)/utils/helpview/src
658 $(CP_P) $(UTILSDIR)/helpview/src/*.rc $(DISTDIR)/utils/helpview/src
659 $(CP_P) $(UTILSDIR)/helpview/src/*.ico $(DISTDIR)/utils/helpview/src
660 $(CP_P) $(UTILSDIR)/helpview/src/readme.txt $(DISTDIR)/utils/helpview/src
661 $(CP_P) $(UTILSDIR)/helpview/src/Makefile.in $(DISTDIR)/utils/helpview/src
662 $(CP_P) $(UTILSDIR)/helpview/src/test.zip $(DISTDIR)/utils/helpview/src
663 $(CP_P) $(UTILSDIR)/helpview/src/bitmaps/*.xpm $(DISTDIR)/utils/helpview/src/bitmaps
664
665 mkdir $(DISTDIR)/utils/wxrc
666 $(CP_P) $(UTILSDIR)/wxrc/Makefile.in $(DISTDIR)/utils/wxrc
667 $(CP_P) $(UTILSDIR)/wxrc/*.cpp $(DISTDIR)/utils/wxrc
668 $(CP_P) $(UTILSDIR)/wxrc/*.rc $(DISTDIR)/utils/wxrc
669
670 MISC_DIST: ALL_GUI_DIST
671
672 INTL_DIST:
673 mkdir $(DISTDIR)/locale
674 $(CP_P) $(INTLDIR)/Makefile $(DISTDIR)/locale
675 $(CP_P) $(INTLDIR)/*.po $(DISTDIR)/locale
676 -$(CP_P) $(INTLDIR)/*.mo $(DISTDIR)/locale
677 subdirs=`cd $(INTLDIR) && ls */*.po | sed 's|/.*||' | uniq`; \
678 for dir in "$$subdirs"; do \
679 mkdir $(DISTDIR)/locale/$$dir; \
680 $(CP_P) $(INTLDIR)/$$dir/*.[pm]o $(DISTDIR)/locale/$$dir; \
681 done
682
683 MANUAL_DIST:
684 mkdir $(DISTDIR)/docs
685 mkdir $(DISTDIR)/docs/latex
686 mkdir $(DISTDIR)/docs/latex/wx
687 $(CP_P) $(DOCDIR)/latex/wx/*.tex $(DISTDIR)/docs/latex/wx
688 $(CP_P) $(DOCDIR)/latex/wx/*.inc $(DISTDIR)/docs/latex/wx
689 $(CP_P) $(DOCDIR)/latex/wx/*.gif $(DISTDIR)/docs/latex/wx
690 $(CP_P) $(DOCDIR)/latex/wx/*.ini $(DISTDIR)/docs/latex/wx
691 $(CP_P) $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
692 $(CP_P) $(DOCDIR)/latex/wx/*.sty $(DISTDIR)/docs/latex/wx
693
694
695 # Copy all the files from wxPython needed for the Debian source package,
696 # and then remove some that are not needed.
697 PYTHON_DIST:
698 for dir in `grep -v '#' $(WXDIR)/wxPython/distrib/DIRLIST`; do \
699 echo "Copying dir: $$dir..."; \
700 mkdir $(DISTDIR)/$$dir; \
701 $(CP_P) $(WXDIR)/$$dir/* $(DISTDIR)/$$dir > /dev/null 2>&1; \
702 done; \
703 \
704 find $(DISTDIR)/wxPython -name "*~" > RM_FILES; \
705 find $(DISTDIR)/wxPython -name "*.pyc" >> RM_FILES; \
706 find $(DISTDIR)/wxPython -name "*.bat" >> RM_FILES; \
707 find $(DISTDIR)/wxPython -name "core" >> RM_FILES; \
708 find $(DISTDIR)/wxPython -name "core.[0-9]*" >> RM_FILES; \
709 find $(DISTDIR)/wxPython -name "*.orig" >> RM_FILES; \
710 find $(DISTDIR)/wxPython -name "*.rej" >> RM_FILES; \
711 for f in `cat RM_FILES`; do rm $$f; done; \
712 rm RM_FILES
713
714
715 distrib_clean:
716 $(RM) -r _dist_dir
717
718 # VZ: the -only targets allow to do "make dist bzip-dist-only" without copying
719 # the files twice
720 dist-only:
721 @echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
722 @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
723 @if test "$(USE_GUI)" = 1; then \
724 cd $(DISTDIR); \
725 mv samples wxSamples-$(WX_VERSION); \
726 echo "*** Creating wxSamples archive..."; \
727 tar ch wxSamples-$(WX_VERSION) | gzip -f9 > ../../$(WXSAMPLES); \
728 mv wxSamples-$(WX_VERSION) samples; \
729 mv demos wxDemos-$(WX_VERSION); \
730 echo "*** Creating wxDemos archive..."; \
731 tar ch wxDemos-$(WX_VERSION) | gzip -f9 > ../../$(WXDEMOS); \
732 mv wxDemos-$(WX_VERSION) demos; \
733 fi
734
735 distdir: @GUIDIST@
736 @echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
737 @# now prune away a lot of the crap included by using cp -R
738 @# in other dist targets.
739 find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
740 \( -name "makefile.*" -a ! -name "makefile.unx" \) \) \
741 -print | egrep -v '/(samples|dbbrowse)/.*\.hh.$$' | xargs rm -rf
742
743 dist: distdir
744 @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
745 @if test "$(USE_GUI)" = 1; then \
746 cd $(DISTDIR); \
747 mv samples wxSamples-$(WX_VERSION); \
748 echo "*** Creating wxSamples archive..."; \
749 tar ch wxSamples-$(WX_VERSION) | gzip -f9 > ../../$(WXSAMPLES); \
750 mv wxSamples-$(WX_VERSION) samples; \
751 mv demos wxDemos-$(WX_VERSION); \
752 echo "*** Creating wxDemos archive..."; \
753 tar ch wxDemos-$(WX_VERSION) | gzip -f9 > ../../$(WXDEMOS); \
754 mv wxDemos-$(WX_VERSION) demos; \
755 fi
756
757 bzip-dist-only:
758 @echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
759 @cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP);
760 @if test "$(USE_GUI)" = 1; then \
761 cd $(DISTDIR); \
762 mv samples wxSamples-${WX_VERSION}; \
763 echo "*** Creating wxSamples archive..."; \
764 tar ch wxSamples-${WX_VERSION} | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
765 mv wxSamples-${WX_VERSION} samples; \
766 mv demos wxDemos-${WX_VERSION}; \
767 echo "*** Creating wxDemos archive..."; \
768 tar ch wxDemos-${WX_VERSION} | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
769 mv wxDemos-${WX_VERSION} demos; \
770 fi
771
772 bzip-dist: @GUIDIST@
773 @echo "*** Creating wxWidgets distribution in $(DISTDIR)..."
774 @cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
775 @if test "$(USE_GUI)" = 1; then \
776 cd $(DISTDIR); \
777 mv samples wxSamples; \
778 tar ch wxSamples | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
779 mv wxSamples samples; \
780 mv demos wxDemos; \
781 tar ch wxDemos | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
782 mv wxDemos demos; \
783 fi
784
785 # RR: Copy text and binary data separatly
786 win-dist: MSW_ZIP_TEXT_DIST
787 @echo "*** Creating wxWidgets ZIP distribution in $(DISTDIR)..."
788 @cd _dist_dir && mv $(DISTDIRNAME) wxMSW
789 @cd _dist_dir && zip -r -l ../$(WXARCHIVE_ZIP) *
790 $(CP_P) $(INCDIR)/wx/msw/*.cur _dist_dir/wxMSW/include/wx/msw
791 $(CP_P) $(INCDIR)/wx/msw/*.ico _dist_dir/wxMSW/include/wx/msw
792 $(CP_P) $(INCDIR)/wx/msw/*.bmp _dist_dir/wxMSW/include/wx/msw
793 @cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.cur
794 @cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.ico
795 @cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.bmp
796
797 debian-dist: DEBIAN_SOURCE_DIR = $(WXDIR)/../wxwidgets@WX_RELEASE@@WX_FLAVOUR@-@WX_SUBVERSION@
798 debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
799 mkdir $(DISTDIR)/debian
800 -$(CP_P) $(WXDIR)/debian/* $(DISTDIR)/debian
801 $(CP_P) $(DOCDIR)/licence.txt $(DISTDIR)/docs
802 $(CP_P) $(DOCDIR)/licendoc.txt $(DISTDIR)/docs
803 $(CP_P) $(DOCDIR)/preamble.txt $(DISTDIR)/docs
804 rm -f $(DISTDIR)/*.spec
805
806 @# now prune away a lot of the crap included by using cp -R
807 @# in other dist targets. Ugly and hardly portable but it
808 @# will run on any Debian box and that's enough for now.
809
810 rm -rf $(DISTDIR)/contrib/build
811 find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" \
812 -o -name "*.dsw" -o -name "*.hh*" -o -name "*.mms" \
813 -o -name "*.mcp" -o -name "*M*.xml" -o -name "*.r" \
814 -o -name "*.pro" \
815 -o -name "*.vpj" -o -name "*.sc" \
816 -o \( -name "makefile.*" -a ! -name "makefile.unx" \) \
817 \) -print0 | xargs -0 rm -rf
818
819 rm -rf $(DISTDIR)/wxPython/SWIG
820 rm -rf $(DISTDIR)/wxPython/distrib
821 rm -rf $(DISTDIR)/wxPython/distutils
822 rm -rf $(DISTDIR)/wxPython/samples
823 rm -rf $(DISTDIR)/wxPython/contrib/iewin
824 find $(DISTDIR)/wxPython \( -name "mac" -o -name "msw" \) -print0 | xargs -0 rm -rf
825
826 rm -rf $(DEBIAN_SOURCE_DIR)
827 mv $(DISTDIR) $(DEBIAN_SOURCE_DIR)
828
829
830 debian-native-dist: @GUIDIST@ UNIV_DIST MANUAL_DIST PYTHON_DIST
831
832 debian-msw-dirs:
833 mkdir $(DISTDIR)/include/wx/msw
834 mkdir $(DISTDIR)/src/msw
835
836
837 RPMTOP=_dist_dir/_rpm_top
838
839 rpm: bzip-dist
840 @echo "*** Building RPMs ***"
841 -mkdir $(RPMTOP)
842 -mkdir $(RPMTOP)/SOURCES
843 -mkdir $(RPMTOP)/SPECS
844 -mkdir $(RPMTOP)/BUILD
845 -mkdir $(RPMTOP)/RPMS
846 -mkdir $(RPMTOP)/SRPMS
847 cp -f $(WXARCHIVE_BZIP) $(RPMTOP)/SOURCES
848 rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
849 mv -f `find $(RPMTOP) -name "wx$(TOOLKIT)*.rpm"` .