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