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