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