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