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