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