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