]> git.saurik.com Git - wxWidgets.git/blame - Makefile.in
better windows painting in wxMGL
[wxWidgets.git] / Makefile.in
CommitLineData
ad9edf45
RR
1#
2# File: makefile.unx
3a922bb4 3# Author: Julian Smart, Robert Roebling, Vadim Zeitlin, Ron Lee
ad9edf45 4# Created: 1993
3a922bb4 5# Updated: 2001
ad9edf45
RR
6# Copyright:(c) 1993, AIAI, University of Edinburgh,
7# Copyright:(c) 1999, Vadim Zeitlin
8# Copyright:(c) 1999, Robert Roebling
3a922bb4 9# Copyright:(c) 2001, Ron Lee
ad9edf45
RR
10#
11# Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
12
13###################################################################
14
15include ./src/make.env
16
17############## override make.env for PIC ##########################
18
3a922bb4
RL
19%.o : %.c
20 $(CC) -c $(CFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
ad9edf45 21
3a922bb4
RL
22%.o : %.cpp
23 $(CXX) -c $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
ad9edf45 24
3a922bb4
RL
25%.o : %.cxx
26 $(CXX) -c $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
ad9edf45 27
3a922bb4 28%.r : %.rsrc
d08b457b 29 $(DEREZ) $^ Carbon.r -useDF > $@
ad9edf45
RR
30
31########################### Paths #################################
32
33srcdir = @srcdir@
1e6feb95 34top_srcdir = @top_srcdir@
ad9edf45 35
1e6feb95
VZ
36VP1 = @TOOLKIT_VPATH@
37VP2 = @top_srcdir@/src/common
38VP3 = @top_srcdir@/src/generic
39VP4 = @top_srcdir@/src/unix
40VP5 = @top_srcdir@/src/html
41VP6 = @top_srcdir@/src/png
42VP7 = @top_srcdir@/src/jpeg
43VP8 = @top_srcdir@/src/tiff
44VP9 = @top_srcdir@/src/zlib
0b2effe9 45VPA = @top_srcdir@/src/regex
1e6feb95
VZ
46VP10 = @top_srcdir@/src/iodbc
47VP11 = @top_srcdir@/src/msw/ole
3fed1840 48
e183484e
VZ
49# the comment at the end of the next line is needed because otherwise autoconf
50# would remove this line completely - it contains a built-in hack to remove
51# any VPATH assignment not containing ':'
3a922bb4 52VPATH = $(VP1)@PATH_IFS@$(VP2)@PATH_IFS@$(VP3)@PATH_IFS@$(VP4)@PATH_IFS@$(VP5)@PATH_IFS@$(VP6)@PATH_IFS@$(VP7)@PATH_IFS@$(VP8)@PATH_IFS@$(VP9)@PATH_IFS@$(VPA)@PATH_IFS@$(VP10)@PATH_IFS@$(VP11) # ':' for autoconf
ad9edf45 53
ad9edf45
RR
54prefix = @prefix@
55exec_prefix = @exec_prefix@
56
57bindir = @bindir@
ad9edf45 58datadir = @datadir@
ad9edf45 59libdir = @libdir@
ad9edf45
RR
60mandir = @mandir@
61includedir = @includedir@
ad9edf45 62
f6bcfd97
BP
63localedir = $(datadir)/locale
64
ad9edf45 65top_builddir = .
3a922bb4 66build_libdir = $(top_builddir)/lib
ad9edf45
RR
67
68INSTALL = @INSTALL@
69INSTALL_PROGRAM = @INSTALL_PROGRAM@
70INSTALL_DATA = @INSTALL_DATA@
2224580a 71INSTALL_SCRIPT = @INSTALL@
3a922bb4 72
ad9edf45
RR
73build_alias = @build_alias@
74build_triplet = @build@
75host_alias = @host_alias@
76host_triplet = @host@
77target_alias = @target_alias@
78target_triplet = @target@
79
dad6c0ea
VZ
80USE_GUI=@USE_GUI@
81
ad9edf45
RR
82############################# Dirs #################################
83
84WXDIR = $(top_srcdir)
85
86# Subordinate library possibilities
87
4cb122de
RR
88SRCDIR = $(WXDIR)/src
89GENDIR = $(WXDIR)/src/generic
90COMMDIR = $(WXDIR)/src/common
91HTMLDIR = $(WXDIR)/src/html
92UNIXDIR = $(WXDIR)/src/unix
93PNGDIR = $(WXDIR)/src/png
94JPEGDIR = $(WXDIR)/src/jpeg
1d62a8b4 95TIFFDIR = $(WXDIR)/src/tiff
4cb122de 96ZLIBDIR = $(WXDIR)/src/zlib
3a922bb4 97REGEXDIR = $(WXDIR)/src/regex
4cb122de 98GTKDIR = $(WXDIR)/src/gtk
ad9edf45 99MOTIFDIR = $(WXDIR)/src/motif
4cb122de 100MSWDIR = $(WXDIR)/src/msw
9260520f 101PMDIR = $(WXDIR)/src/os2
b4085ce6 102MACDIR = $(WXDIR)/src/mac
c09ab26a 103ODBCDIR = $(WXDIR)/src/iodbc
3fed1840 104FTDIR = $(WXDIR)/src/freetype
4cb122de
RR
105INCDIR = $(WXDIR)/include
106SAMPDIR = $(WXDIR)/samples
dfd6b52f 107DEMODIR = $(WXDIR)/demos
641d87d8 108UTILSDIR = $(WXDIR)/utils
a6f3598d 109MISCDIR = $(WXDIR)/misc
ad9edf45 110
f6bcfd97
BP
111DOCDIR = $(WXDIR)/docs
112INTLDIR = $(WXDIR)/locale
ad9edf45 113
a4aad961
RR
114########################## Archive name ###############################
115
31fe72b6 116# append a version suffix x.y.z to all file names
e59a8895 117VER_SUFFIX=$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)$(EXTRA_VER)
16b0e4ac
VZ
118WXARCHIVE=@DISTDIR@-$(VER_SUFFIX).tar.gz
119WXGLARCHIVE=@DISTDIR@-gl-$(VER_SUFFIX).tar.gz
120WXSAMPLES=wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.gz
121WXDEMOS=wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.gz
31fe72b6 122
16b0e4ac
VZ
123WXARCHIVE_BZIP=@DISTDIR@-$(VER_SUFFIX).tar.bz2
124WXGLARCHIVE_BZIP=@DISTDIR@-gl-$(VER_SUFFIX).tar.bz2
125WXSAMPLES_BZIP=wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.bz2
126WXDEMOS_BZIP=wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.bz2
f6bcfd97 127
16b0e4ac
VZ
128DISTDIRNAME=@DISTDIR@-$(VER_SUFFIX)
129DISTDIR=./_dist_dir/$(DISTDIRNAME)
a4aad961 130
f6bcfd97 131
ad9edf45
RR
132############################## Files ##################################
133
f6bcfd97
BP
134WX_LINGUAS = `cd $(top_srcdir)/locale && ls *.mo 2> /dev/null | sed -n 's/\.mo//p'`
135
2224580a
VZ
136# this line will include a file which defines ALL_SOURCES, ALL_OBJECTS,
137# ALL_DEPFILES and ALL_HEADERS variables with the complete list of .cpp, .o,
138# .d and .h/.inl files for the current toolkit
879df073 139include @PORT_FILES@
2224580a
VZ
140
141SOURCES = $(ALL_SOURCES)
142HEADERS = $(ALL_HEADERS)
143
144# for the objects and depfiles, we might be bulding only part of them
145# depending on configure arguments, so select a subset of ALL
146OBJECTS = @ALL_OBJECTS@
ad9edf45 147
2224580a
VZ
148# the object files of sublibraries (we assume that they don't change [often],
149# so we don't generate these lists with tmake but embed them here)
0b2effe9
VZ
150REGEXOBJS = \
151 regcomp.o \
152 regexec.o \
153 regerror.o \
154 regfree.o
155
156ZLIBOBJS = \
5586805b
RR
157 adler32.o \
158 compress.o \
159 crc32.o \
160 gzio.o \
161 uncompr.o \
162 deflate.o \
163 trees.o \
164 zutil.o \
165 inflate.o \
166 infblock.o \
167 inftrees.o \
168 infcodes.o \
169 infutil.o \
170 inffast.o
ad9edf45 171
0b2effe9 172PNGOBJS = \
5586805b
RR
173 png.o \
174 pngread.o \
175 pngrtran.o \
176 pngrutil.o \
177 pngpread.o \
178 pngtrans.o \
179 pngwrite.o \
180 pngwtran.o \
181 pngwutil.o \
182 pngerror.o \
183 pngmem.o \
184 pngwio.o \
185 pngrio.o \
186 pngget.o \
187 pngset.o
ad9edf45 188
3fed1840
RR
189FREETYPEOBJS = \
190 ftsystem.o \
3fed1840
RR
191 autohint.o \
192 ftbase.o \
3fed1840 193 ftdebug.o \
3fed1840
RR
194 ftglyph.o \
195 ftinit.o \
3fed1840 196 ftmm.o \
3fed1840 197 cff.o \
3fed1840 198 type1cid.o \
3fed1840 199 psnames.o \
37b09a9a 200 psmodule.o \
3fed1840 201 raster1.o \
3fed1840 202 sfnt.o \
3fed1840
RR
203 smooth.o \
204 truetype.o \
3fed1840
RR
205 type1z.o \
206 winfnt.o
ad9edf45 207
0b2effe9 208JPEGOBJS = \
5586805b
RR
209 jcomapi.o \
210 jutils.o \
211 jerror.o \
212 jmemmgr.o \
213 jmemnobs.o \
214 jcapimin.o \
215 jcapistd.o \
216 jctrans.o \
217 jcparam.o \
218 jdatadst.o \
219 jcinit.o \
220 jcmaster.o \
221 jcmarker.o \
222 jcmainct.o \
223 jcprepct.o \
224 jccoefct.o \
225 jccolor.o \
226 jcsample.o \
227 jchuff.o \
228 jcphuff.o \
229 jcdctmgr.o \
230 jfdctfst.o \
231 jfdctflt.o \
232 jfdctint.o \
233 jdapimin.o \
234 jdapistd.o \
235 jdtrans.o \
236 jdatasrc.o \
237 jdmaster.o \
238 jdinput.o \
239 jdmarker.o \
240 jdhuff.o \
241 jdphuff.o \
242 jdmainct.o \
243 jdcoefct.o \
244 jdpostct.o \
245 jddctmgr.o \
246 jidctfst.o \
247 jidctflt.o \
248 jidctint.o \
249 jidctred.o \
250 jdsample.o \
251 jdcolor.o \
252 jquant1.o \
253 jquant2.o \
254 jdmerge.o
ad9edf45 255
0b2effe9 256TIFFOBJS = \
c7a2bf27
RR
257 tif_aux.o \
258 tif_close.o \
259 tif_codec.o \
260 tif_compress.o \
261 tif_dir.o \
262 tif_dirinfo.o \
263 tif_dirread.o \
264 tif_dirwrite.o \
265 tif_dumpmode.o \
266 tif_error.o \
267 tif_fax3.o \
268 tif_fax3sm.o \
269 tif_getimage.o \
270 tif_jpeg.o \
271 tif_flush.o \
272 tif_lzw.o \
b47c832e 273 tif_luv.o \
c7a2bf27
RR
274 tif_next.o \
275 tif_open.o \
276 tif_packbits.o \
277 tif_pixarlog.o \
278 tif_predict.o \
279 tif_print.o \
280 tif_read.o \
281 tif_swab.o \
282 tif_strip.o \
283 tif_thunder.o \
284 tif_tile.o \
285 tif_unix.o \
286 tif_version.o \
287 tif_warning.o \
288 tif_write.o \
289 tif_zip.o
290
103aab26 291IODBCOBJS = \
e115e771
RR
292 catalog.o \
293 connect.o \
294 dlf.o \
295 dlproc.o \
296 execute.o \
297 fetch.o \
298 hdbc.o \
299 henv.o \
300 herr.o \
301 hstmt.o \
302 info.o \
303 itrace.o \
304 misc.o \
305 prepare.o \
306 result.o
7d88e244 307
e59a8895 308
2224580a 309############################## Rules ##################################
f85afd4e 310
3a922bb4
RL
311SONAME_FLAGS = @SONAME_FLAGS@
312SONAME_FLAGS_GL = @SONAME_FLAGS_GL@
1d62a8b4 313
de87c353 314all: @WX_ALL@
ad9edf45 315
3a922bb4
RL
316$(build_libdir)/@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
317 @$(INSTALL) -d $(build_libdir)
318 $(AR) $(AROPTIONS) $@ $(OBJECTS)
319 $(RANLIB) $@
ad9edf45 320
3a922bb4
RL
321$(build_libdir)/@WX_LIBRARY_NAME_STATIC_GL@: glcanvas.o
322 @$(INSTALL) -d $(build_libdir)
323 $(AR) $(AROPTIONS) $@ glcanvas.o
324 $(RANLIB) $@
bdad4e7e 325
3a922bb4
RL
326$(build_libdir)/@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
327 @$(INSTALL) -d $(build_libdir)
328 $(SHARED_LD) $@ $(SONAME_FLAGS) $(OBJECTS) $(EXTRALIBS)
b4085ce6 329
3a922bb4
RL
330$(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@: glcanvas.o $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
331 @$(INSTALL) -d $(build_libdir)
332 $(SHARED_LD) $@ $(SONAME_FLAGS_GL) glcanvas.o -L$(build_libdir) @WXCONFIG_LIBS@ $(EXTRALIBS) $(OPENGLLIBS)
b4085ce6 333
d08b457b 334$(build_libdir)/@WX_RESOURCES_MACOSX@: $(MACRESOURCES)
3a922bb4
RL
335 @$(INSTALL) -d $(build_libdir)
336 $(RESCOMP) -d __UNIX__ -useDF $^ -o $@
2f51a9ec 337
3a922bb4
RL
338$(build_libdir)/@WX_LIBRARY_LINK1@: $(build_libdir)/@WX_LIBRARY_NAME_SHARED@
339 @$(RM) $(build_libdir)/@WX_LIBRARY_LINK1@
340 @$(RM) $(build_libdir)/@WX_LIBRARY_LINK2@
341 cd $(build_libdir) \
07eb77a6 342 && $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK1@ \
3a922bb4 343 && $(LN_S) @WX_TARGET_LIBRARY@ @WX_LIBRARY_LINK2@
b4085ce6 344
3a922bb4
RL
345$(build_libdir)/@WX_LIBRARY_LINK1_GL@: $(build_libdir)/@WX_LIBRARY_NAME_SHARED_GL@
346 @$(RM) $(build_libdir)/@WX_LIBRARY_LINK1_GL@
347 @$(RM) $(build_libdir)/@WX_LIBRARY_LINK2_GL@
348 cd $(build_libdir) \
349 && $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK1_GL@ \
350 && $(LN_S) @WX_TARGET_LIBRARY_GL@ @WX_LIBRARY_LINK2_GL@
b4085ce6 351
257980e6 352$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h
ad9edf45
RR
353
354parser.o: parser.c lexer.c
8636aed8 355 $(CCLEX) -c $(CFLAGS) $(PICFLAGS) -o $@ parser.c
ad9edf45
RR
356
357parser.c: $(COMMDIR)/parser.y lexer.c
358 $(YACC) $(COMMDIR)/parser.y
359 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
360 sed -e "s/BUFSIZ/5000/g" | \
361 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
362 sed -e "s/yy/PROIO_yy/g" | \
363 sed -e "s/input/PROIO_input/g" | \
364 sed -e "s/unput/PROIO_unput/g" > parser.c
365 @$(RM) y.tab.c
366
367lexer.c: $(COMMDIR)/lexer.l
368 $(LEX) $(COMMDIR)/lexer.l
9260520f 369 @sed -e "s;$(COMMDIR)/@LEX_STEM@.c;lexer.l;g" < @LEX_STEM@.c | \
ad9edf45
RR
370 sed -e "s/yy/PROIO_yy/g" | \
371 sed -e "s/input/PROIO_input/g" | \
372 sed -e "s/unput/PROIO_unput/g" > lexer.c
9260520f 373 @$(RM) @LEX_STEM@.c
ad9edf45 374
3a922bb4
RL
375-include $(OBJECTS:.o=.d)
376
377
378CREATE_INSTALLED_LINKS: preinstall
379 $(RM) $(libdir)/@WX_LIBRARY_LINK1@
380 $(RM) $(libdir)/@WX_LIBRARY_LINK2@
381 cd $(libdir) \
382 && $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK1@ \
383 && $(LN_S) @WX_LIBRARY_NAME_SHARED@ @WX_LIBRARY_LINK2@
384
385CREATE_INSTALLED_LINKS_GL: preinstall_gl
386 $(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
387 $(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
388 cd $(libdir) \
389 && $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK1_GL@ \
390 && $(LN_S) @WX_LIBRARY_NAME_SHARED_GL@ @WX_LIBRARY_LINK2_GL@
5586805b 391
2224580a 392afminstall: preinstall
e09bdfbe 393 @if test ! -d $(datadir); then $(INSTALL) -d $(datadir); fi
dad6c0ea
VZ
394 $(INSTALL) -d $(datadir)/wx
395 $(INSTALL) -d $(datadir)/wx/afm
396 $(INSTALL) -d $(datadir)/wx/gs_afm
397 $(INSTALL_DATA) $(top_srcdir)/misc/afm/*.afm $(datadir)/wx/afm
398 $(INSTALL_DATA) $(top_srcdir)/misc/gs_afm/*.afm $(datadir)/wx/gs_afm
2224580a
VZ
399
400# this is the real install target: copies the library, wx-config and the
401# headers to the installation directory
3a922bb4 402preinstall: $(build_libdir)/@WX_TARGET_LIBRARY@ $(top_builddir)/wx@TOOLCHAIN_NAME@-config
ad9edf45
RR
403 @echo " "
404 @echo " Installing wxWindows..."
405 @echo " "
406
e09bdfbe
VZ
407 @if test ! -d $(prefix); then $(INSTALL) -d $(prefix); fi
408 @if test ! -d $(bindir); then $(INSTALL) -d $(bindir); fi
409 @if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
8b17ba72 410
3a922bb4
RL
411 $(INSTALL_SCRIPT) $(top_builddir)/wx@TOOLCHAIN_NAME@-config $(bindir)/wx@TOOLCHAIN_NAME@-config
412 cd $(bindir) && rm -f wx-config && $(LN_S) wx@TOOLCHAIN_NAME@-config wx-config
413 $(INSTALL_PROGRAM) $(build_libdir)/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
8b17ba72
RR
414
415 $(INSTALL) -d $(libdir)/wx
416 $(INSTALL) -d $(libdir)/wx/include
3a922bb4
RL
417 $(INSTALL) -d $(libdir)/wx/include/@TOOLCHAIN_NAME@
418 $(INSTALL) -d $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx
419 $(INSTALL_DATA) $(build_libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h \
420 $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h
b4085ce6 421
8b17ba72 422 $(INSTALL) -d $(includedir)/wx
3a922bb4 423 @# FIXME: This will erroneously install a wx/base dir for wxBase..
9260520f
VZ
424 @if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/@TOOLKIT_DIR@; fi
425 @if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/html; fi
9260520f 426 @if test "$(USE_GUI)" = 1; then $(INSTALL) -d $(includedir)/wx/generic; fi
2224580a
VZ
427 $(INSTALL) -d $(includedir)/wx/protocol
428 $(INSTALL) -d $(includedir)/wx/unix
ad9edf45
RR
429 @list='$(HEADERS)'; for p in $$list; do \
430 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
431 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
432 done
9260520f 433
e09bdfbe 434 @if test ! -d $(localedir); then $(INSTALL) -d $(localedir); fi
f6bcfd97 435 @for p in $(WX_LINGUAS); do \
e09bdfbe
VZ
436 if test ! -d $(localedir)/$$p; then $(INSTALL) -d $(localedir)/$$p; fi;\
437 if test ! -d $(localedir)/$$p/LC_MESSAGES; then $(INSTALL) -d $(localedir)/$$p/LC_MESSAGES; fi;\
f6bcfd97
BP
438 $(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
439 echo "$(INSTALL_DATA) $(top_srcdir)/locale/$$p.mo $(localedir)/$$p/LC_MESSAGES/wxstd.mo"; \
440 done
441
3a922bb4 442preinstall_gl: $(build_libdir)/@WX_TARGET_LIBRARY_GL@
c661ecca
RR
443 @echo " "
444 @echo " Installing wxWindows OpenGl add-on..."
445 @echo " "
e09bdfbe 446 @if test ! -d $(libdir); then $(INSTALL) -d $(libdir); fi
3a922bb4 447 $(INSTALL_PROGRAM) $(build_libdir)/@WX_TARGET_LIBRARY_GL@ $(libdir)/@WX_TARGET_LIBRARY_GL@
c661ecca 448
2224580a 449install: @AFMINSTALL@ @WX_ALL_INSTALLED@
549c6f67 450 @echo " "
ad9edf45 451 @echo " The installation of wxWindows is finished. On certain"
c09ab26a 452 @echo " platforms (e.g. Linux) you'll now have to run ldconfig"
2224580a
VZ
453 @echo " if you installed a shared library and also modify"
454 @echo " LD_LIBRARY_PATH (or equivalent) environment variable."
ad9edf45 455 @echo " "
2224580a 456 @echo " wxWindows comes with no guarantees and doesn't claim"
ad9edf45
RR
457 @echo " to be suitable for any purpose."
458 @echo " "
459 @echo " Read the wxWindows Licence on licencing conditions."
460 @echo " "
461
ad9edf45
RR
462uninstall:
463 @echo " "
464 @echo " Uninstalling wxWindows..."
465 @echo " "
466 @echo " Removing library..."
8b17ba72
RR
467 @$(RM) $(libdir)/@WX_TARGET_LIBRARY@
468 @$(RM) $(libdir)/@WX_LIBRARY_LINK1@
469 @$(RM) $(libdir)/@WX_LIBRARY_LINK2@
bdad4e7e
RR
470 @echo " Removing GL library..."
471 @$(RM) $(libdir)/@WX_TARGET_LIBRARY_GL@
472 @$(RM) $(libdir)/@WX_LIBRARY_LINK1_GL@
473 @$(RM) $(libdir)/@WX_LIBRARY_LINK2_GL@
ad9edf45 474 @echo " Removing helper files..."
3a922bb4 475 @$(RM) $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx/setup.h
8b17ba72 476 @$(RM) $(bindir)/wx-config
3a922bb4 477 @$(RM) $(bindir)/wx@TOOLCHAIN_NAME@-config
a6f3598d
RR
478 @$(RM) $(datadir)/wx/afm/*
479 @$(RM) $(datadir)/wx/gs_afm/*
07eb77a6
RL
480# FIXME: wxBase doesnt install these next 3 dirs.
481 @-rmdir $(datadir)/wx/gs_afm
482 @-rmdir $(datadir)/wx/afm
483 @-rmdir $(datadir)/wx
ad9edf45
RR
484 @echo " Removing headers..."
485 @list='$(HEADERS)'; for p in $$list; do \
8b17ba72 486 $(RM) $(includedir)/wx/$$p; \
ad9edf45 487 done
f6bcfd97
BP
488 @echo " Removing i18n files..."
489 @-for p in $(WX_LINGUAS); do \
490 $(RM) $(localedir)/$$p/LC_MESSAGES/wxstd.mo; \
491 rmdir $(localedir)/$$p/LC_MESSAGES; \
492 rmdir $(localedir)/$$p; \
493 done
ad9edf45 494 @echo " Removing directories..."
f6bcfd97 495 @-rmdir $(localedir)
3a922bb4
RL
496 @if test -d $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx; then rmdir $(libdir)/wx/include/@TOOLCHAIN_NAME@/wx; fi
497 @if test -d $(libdir)/wx/include/@TOOLCHAIN_NAME@; then rmdir $(libdir)/wx/include/@TOOLCHAIN_NAME@; fi
ad9edf45
RR
498 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
499 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
500 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
501 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
a6f3598d 502 @if test -d $(includedir)/wx/msw; then rmdir $(includedir)/wx/msw; fi
ad9edf45
RR
503 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
504 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
505 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
506 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
507 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
508
2224580a
VZ
509# this target should copy only the files common to really all ports (including
510# wxBase) to the dist dir
511ALL_DIST: distclean
a4aad961
RR
512 mkdir _dist_dir
513 mkdir $(DISTDIR)
257980e6 514 cp $(WXDIR)/configure.in $(DISTDIR)
a4aad961
RR
515 cp $(WXDIR)/configure $(DISTDIR)
516 cp $(WXDIR)/config.sub $(DISTDIR)
517 cp $(WXDIR)/config.guess $(DISTDIR)
518 cp $(WXDIR)/install-sh $(DISTDIR)
519 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
520 cp $(WXDIR)/wx-config.in $(DISTDIR)
521 cp $(WXDIR)/setup.h.in $(DISTDIR)
6e7b6cc6
RR
522 cp $(WXDIR)/setup.h_vms $(DISTDIR)
523 cp $(WXDIR)/descrip.mms $(DISTDIR)
a4aad961
RR
524 cp $(WXDIR)/Makefile.in $(DISTDIR)
525 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
526 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
527 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
6e7b6cc6
RR
528 mkdir $(DISTDIR)/lib
529 cp $(WXDIR)/lib/vms.opt $(DISTDIR)/lib
530 cp $(WXDIR)/lib/vms_gtk.opt $(DISTDIR)/lib
dc3d889d
VZ
531 mkdir $(DISTDIR)/src
532 mkdir $(DISTDIR)/src/zlib
533 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
534 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
535 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
536 cp $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
3a922bb4
RL
537 mkdir $(DISTDIR)/src/regex
538 cp $(REGEXDIR)/*.{i,}h $(DISTDIR)/src/regex
539 cp $(REGEXDIR)/*.c $(DISTDIR)/src/regex
540 cp $(REGEXDIR)/{Makefile,COPYRIGHT,README,WHATSNEW} $(DISTDIR)/src/regex
541 cp $(REGEXDIR)/{mkh,tests} $(DISTDIR)/src/regex
2224580a
VZ
542
543# this target is the common part of distribution script for all GUI toolkits,
544# but is not used when building wxBase distribution
545ALL_GUI_DIST: ALL_DIST
546 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
5a7faf1e 547 cp $(WXDIR)/wxBase.spec $(DISTDIR)
a4aad961
RR
548 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
549 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
550 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
551 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
552 mkdir $(DISTDIR)/include
553 mkdir $(DISTDIR)/include/wx
554 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
555 mkdir $(DISTDIR)/include/wx/generic
556 mkdir $(DISTDIR)/include/wx/html
a4aad961 557 mkdir $(DISTDIR)/include/wx/protocol
2224580a
VZ
558 mkdir $(DISTDIR)/include/wx/unix
559 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
560 cp $(INCDIR)/wx/*.inl $(DISTDIR)/include/wx
a4aad961
RR
561 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
562 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
563 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
564 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
565 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
566 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
4cb122de
RR
567 mkdir $(DISTDIR)/src/common
568 mkdir $(DISTDIR)/src/generic
569 mkdir $(DISTDIR)/src/html
570 mkdir $(DISTDIR)/src/html/bitmaps
571 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
4cb122de
RR
572 mkdir $(DISTDIR)/src/png
573 mkdir $(DISTDIR)/src/jpeg
1d62a8b4 574 mkdir $(DISTDIR)/src/tiff
c09ab26a 575 mkdir $(DISTDIR)/src/iodbc
2224580a 576 mkdir $(DISTDIR)/src/unix
3a922bb4 577 cp $(SRCDIR)/files.lst $(DISTDIR)/src/
4cb122de
RR
578 cp $(SRCDIR)/*.in $(DISTDIR)/src
579 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
580 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
581 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
582 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
583 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
584 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
6e7b6cc6
RR
585 cp $(COMMDIR)/*.mms $(DISTDIR)/src/common
586 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
587 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
588 cp $(UNIXDIR)/*.mms $(DISTDIR)/src/unix
4cb122de 589 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
6e7b6cc6 590 cp $(GENDIR)/*.mms $(DISTDIR)/src/generic
4cb122de 591 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
4cb122de 592 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
4cb122de
RR
593 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
594 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
595 cp $(PNGDIR)/README $(DISTDIR)/src/png
4cb122de
RR
596 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
597 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
598 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
1d62a8b4
RR
599 cp $(TIFFDIR)/*.h $(DISTDIR)/src/tiff
600 cp $(TIFFDIR)/*.c $(DISTDIR)/src/tiff
601 cp $(TIFFDIR)/README $(DISTDIR)/src/tiff
c09ab26a
RR
602 cp $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc
603 cp $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc
604 cp $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc
605 cp $(ODBCDIR)/*.exp $(DISTDIR)/src/iodbc
606 cp $(ODBCDIR)/README $(DISTDIR)/src/iodbc
607 cp $(ODBCDIR)/NEWS $(DISTDIR)/src/iodbc
608 cp $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
a4aad961 609
2224580a
VZ
610BASE_DIST: ALL_DIST
611 mkdir $(DISTDIR)/include
612 mkdir $(DISTDIR)/include/wx
613 mkdir $(DISTDIR)/include/wx/protocol
614 mkdir $(DISTDIR)/include/wx/unix
2224580a
VZ
615 mkdir $(DISTDIR)/src/common
616 mkdir $(DISTDIR)/src/unix
3a922bb4 617 cp @PORT_FILES@ $(DISTDIR)
2224580a
VZ
618 cp $(WXDIR)/@RPM_FILES@ $(DISTDIR)/@RPM_FILES@
619 cp $(WXDIR)/@RPM_SPEC@ $(DISTDIR)/@RPM_SPEC@
5a7faf1e 620 cp $(WXDIR)/wxBase*.ds[pw] $(DISTDIR)
2224580a
VZ
621 cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
622 cp $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
2224580a 623 cp $(SRCDIR)/*.in $(DISTDIR)/src
5a7faf1e
VZ
624 cp $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
625 cp $(WXDIR)/src/common/base.rc $(DISTDIR)/src/common
626 cp $(WXDIR)/src/common/unzip.h $(DISTDIR)/src/common
2224580a
VZ
627 list='$(HEADERS)'; for p in $$list; do \
628 cp $(WXDIR)/include/wx/$$p $(DISTDIR)/include/wx/$$p; \
629 done
630 list='$(SOURCES)'; for p in $$list; do \
631 cp $(WXDIR)/src/$$p $(DISTDIR)/src/$$p; \
632 done
633
5a7faf1e
VZ
634 mkdir $(DISTDIR)/samples
635 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
636 cp $(SAMPDIR)/configure $(DISTDIR)/samples
637 cp $(SAMPDIR)/configure.in $(DISTDIR)/samples
638
639 mkdir $(DISTDIR)/samples/console
640 cp $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
641 cp $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
642 cp $(SAMPDIR)/console/console.cpp $(DISTDIR)/samples/console
643 cp $(SAMPDIR)/console/testdata.fc $(DISTDIR)/samples/console
644
2224580a 645GTK_DIST: ALL_GUI_DIST
a4aad961 646 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
4cb122de 647 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
3a922bb4 648 cp $(GTKDIR)/files.lst $(DISTDIR)/src/gtk
4cb122de
RR
649 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
650 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
651 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
6e7b6cc6
RR
652 cp $(GTKDIR)/*.mms $(DISTDIR)/src/gtk
653 mkdir $(DISTDIR)/contrib
654 cp -R $(WXDIR)/contrib $(DISTDIR)
a4aad961 655
2224580a 656MOTIF_DIST: ALL_GUI_DIST
4cb122de 657 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
a4aad961 658 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
3a922bb4 659 cp $(MOTIFDIR)/files.lst $(DISTDIR)/src/motif
4cb122de
RR
660 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
661 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
662 mkdir $(DISTDIR)/src/motif/xmcombo
663 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
664 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
665 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
a4aad961 666
c521c494 667MACX_DIST: ALL_GUI_DIST
dd8914bc
GD
668 cp $(INCDIR)/wx/mac/*.h $(DISTDIR)/include/wx/mac
669 cp $(MACDIR)/files.lst $(DISTDIR)/src/mac
670 cp $(MACDIR)/*.cpp $(DISTDIR)/src/mac
671 cp $(MACDIR)/*.c $(DISTDIR)/src/mac
672 mkdir $(DISTDIR)/src/mac/morefile
673 cp $(MACDIR)/morefile/*.h $(DISTDIR)/src/mac/morefile
674 cp $(MACDIR)/morefile/*.cpp $(DISTDIR)/src/mac/morefile
675 mkdir $(DISTDIR)/src/mac/cdef
676 cp $(MACDIR)/cdef/*.h $(DISTDIR)/src/mac/cdef
677 cp $(MACDIR)/cdef/*.cpp $(DISTDIR)/src/mac/cdef
678 cp $(MACDIR)/cdef/*.mcp $(DISTDIR)/src/mac/cdef
679 mkdir $(DISTDIR)/src/mac/ldef
680 cp $(MACDIR)/ldef/*.h $(DISTDIR)/src/mac/ldef
681 cp $(MACDIR)/ldef/*.cpp $(DISTDIR)/src/mac/ldef
682 cp $(MACDIR)/ldef/*.mcp $(DISTDIR)/src/mac/cdef
683 mkdir $(DISTDIR)/src/mac/morefile
684 cp $(MACDIR)/morefile/*.c $(DISTDIR)/src/mac/morefile
685 cp $(MACDIR)/morefile/*.h $(DISTDIR)/src/mac/morefile
b4085ce6 686
2224580a 687MSW_DIST: ALL_GUI_DIST
4cb122de 688 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
3a922bb4
RL
689 mkdir $(DISTDIR)/include/wx/msw/ctl3d
690 mkdir $(DISTDIR)/include/wx/msw/gnuwin32
691 mkdir $(DISTDIR)/include/wx/msw/gnuwin32/gl
692 mkdir $(DISTDIR)/include/wx/msw/ole
a4aad961
RR
693 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
694 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
695 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
696 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
697 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
3a922bb4
RL
698 cp $(INCDIR)/wx/msw/ctl3d/*.h $(DISTDIR)/include/wx/msw/ctl3d
699 cp $(INCDIR)/wx/msw/gnuwin32/*.h $(DISTDIR)/include/wx/msw/gnuwin32
700 cp $(INCDIR)/wx/msw/gnuwin32/gl/*.h $(DISTDIR)/include/wx/msw/gnuwin32/gl
701 cp $(INCDIR)/wx/msw/gnuwin32/gl/*.def $(DISTDIR)/include/wx/msw/gnuwin32/gl
702 cp $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
703
704 mkdir $(DISTDIR)/src/msw/ole
705 cp $(MSWDIR)/files.lst $(DISTDIR)/src/msw
4cb122de
RR
706 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
707 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
708 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
4cb122de
RR
709 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
710
7b7a7637
RL
711UNIV_DIST: ALL_GUI_DIST
712 mkdir $(DISTDIR)/include/wx/univ
713 mkdir $(DISTDIR)/src/univ
714 mkdir $(DISTDIR)/src/univ/themes
715 cp $(INCDIR)/wx/univ/*.h $(DISTDIR)/include/wx/univ
716 cp $(SRCDIR)/univ/files.lst $(DISTDIR)/src/univ
717 cp $(SRCDIR)/univ/*.cpp $(DISTDIR)/src/univ
718 cp $(SRCDIR)/univ/themes/*.cpp $(DISTDIR)/src/univ/themes
719
2224580a 720DEMOS_DIST: ALL_GUI_DIST
dfd6b52f
RR
721 mkdir $(DISTDIR)/demos
722 cp $(DEMODIR)/Makefile.in $(DISTDIR)/demos
cc977e5f
RR
723 cp $(DEMODIR)/configure $(DISTDIR)/demos
724 cp $(DEMODIR)/configure.in $(DISTDIR)/demos
b4085ce6 725
cc977e5f 726 cp -R $(DEMODIR)/dbbrowse $(DISTDIR)/demos/dbbrowse
e59a8895 727
dfd6b52f
RR
728 mkdir $(DISTDIR)/demos/bombs
729 cp $(DEMODIR)/bombs/Makefile.in $(DISTDIR)/demos/bombs
730 cp $(DEMODIR)/bombs/makefile.unx $(DISTDIR)/demos/bombs
731 cp $(DEMODIR)/bombs/*.cpp $(DISTDIR)/demos/bombs
732 cp $(DEMODIR)/bombs/*.h $(DISTDIR)/demos/bombs
733 cp $(DEMODIR)/bombs/*.xpm $(DISTDIR)/demos/bombs
734 cp $(DEMODIR)/bombs/readme.txt $(DISTDIR)/demos/bombs
b4085ce6 735
dfd6b52f
RR
736 mkdir $(DISTDIR)/demos/forty
737 cp $(DEMODIR)/forty/Makefile.in $(DISTDIR)/demos/forty
738 cp $(DEMODIR)/forty/makefile.unx $(DISTDIR)/demos/forty
739 cp $(DEMODIR)/forty/*.h $(DISTDIR)/demos/forty
740 cp $(DEMODIR)/forty/*.cpp $(DISTDIR)/demos/forty
741 cp $(DEMODIR)/forty/*.xpm $(DISTDIR)/demos/forty
742 cp $(DEMODIR)/forty/*.xbm $(DISTDIR)/demos/forty
b4085ce6 743
dfd6b52f
RR
744 mkdir $(DISTDIR)/demos/life
745 mkdir $(DISTDIR)/demos/life/bitmaps
746 cp $(DEMODIR)/life/Makefile.in $(DISTDIR)/demos/life
747 cp $(DEMODIR)/life/makefile.unx $(DISTDIR)/demos/life
748 cp $(DEMODIR)/life/*.cpp $(DISTDIR)/demos/life
749 cp $(DEMODIR)/life/*.h $(DISTDIR)/demos/life
750 cp $(DEMODIR)/life/*.xpm $(DISTDIR)/demos/life
491e9f50 751 cp $(DEMODIR)/life/*.inc $(DISTDIR)/demos/life
f6bcfd97 752 cp $(DEMODIR)/life/*.lif $(DISTDIR)/demos/life
dfd6b52f 753 cp $(DEMODIR)/life/bitmaps/*.xpm $(DISTDIR)/demos/life/bitmaps
b4085ce6 754
dfd6b52f
RR
755 mkdir $(DISTDIR)/demos/poem
756 cp $(DEMODIR)/poem/Makefile.in $(DISTDIR)/demos/poem
88413fec 757 cp $(DEMODIR)/poem/makefile.unx $(DISTDIR)/demos/poem
491e9f50 758 cp $(DEMODIR)/poem/*.h $(DISTDIR)/demos/poem
dfd6b52f
RR
759 cp $(DEMODIR)/poem/*.cpp $(DISTDIR)/demos/poem
760 cp $(DEMODIR)/poem/*.xpm $(DISTDIR)/demos/poem
761 cp $(DEMODIR)/poem/*.dat $(DISTDIR)/demos/poem
762 cp $(DEMODIR)/poem/*.txt $(DISTDIR)/demos/poem
b4085ce6 763
dfd6b52f
RR
764 mkdir $(DISTDIR)/demos/fractal
765 cp $(DEMODIR)/fractal/Makefile.in $(DISTDIR)/demos/fractal
766 cp $(DEMODIR)/fractal/makefile.unx $(DISTDIR)/demos/fractal
767 cp $(DEMODIR)/fractal/*.cpp $(DISTDIR)/demos/fractal
b4085ce6 768
2224580a 769SAMPLES_DIST: ALL_GUI_DIST
4cb122de
RR
770 mkdir $(DISTDIR)/samples
771 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
2224580a
VZ
772 cp $(SAMPDIR)/configure $(DISTDIR)/samples
773 cp $(SAMPDIR)/configure.in $(DISTDIR)/samples
c661ecca
RR
774
775 mkdir $(DISTDIR)/samples/calendar
776 cp $(SAMPDIR)/calendar/Makefile.in $(DISTDIR)/samples/calendar
777 cp $(SAMPDIR)/calendar/makefile.unx $(DISTDIR)/samples/calendar
778 cp $(SAMPDIR)/calendar/*.cpp $(DISTDIR)/samples/calendar
779
4cb122de
RR
780 mkdir $(DISTDIR)/samples/caret
781 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
c4fda16b 782 cp $(SAMPDIR)/caret/makefile.unx $(DISTDIR)/samples/caret
4cb122de
RR
783 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
784 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
c661ecca
RR
785
786 mkdir $(DISTDIR)/samples/checklst
787 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
788 cp $(SAMPDIR)/checklst/makefile.unx $(DISTDIR)/samples/checklst
789 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
790 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
6e7b6cc6 791 cp $(SAMPDIR)/checklst/*.mms $(DISTDIR)/samples/checklst
c661ecca 792
4cb122de
RR
793 mkdir $(DISTDIR)/samples/config
794 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
c4fda16b 795 cp $(SAMPDIR)/config/makefile.unx $(DISTDIR)/samples/config
4cb122de 796 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
c661ecca 797
1e8d2f69
RR
798 mkdir $(DISTDIR)/samples/console
799 cp $(SAMPDIR)/console/Makefile.in $(DISTDIR)/samples/console
800 cp $(SAMPDIR)/console/makefile.unx $(DISTDIR)/samples/console
801 cp $(SAMPDIR)/console/*.cpp $(DISTDIR)/samples/console
c661ecca 802
4cb122de
RR
803 mkdir $(DISTDIR)/samples/controls
804 mkdir $(DISTDIR)/samples/controls/icons
805 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
c4fda16b 806 cp $(SAMPDIR)/controls/makefile.unx $(DISTDIR)/samples/controls
4cb122de
RR
807 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
808 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
6e7b6cc6 809 cp $(SAMPDIR)/controls/*.mms $(DISTDIR)/samples/controls
4cb122de 810 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
c661ecca 811
79144b8a
RR
812 mkdir $(DISTDIR)/samples/db
813 cp $(SAMPDIR)/db/Makefile.in $(DISTDIR)/samples/db
c4fda16b 814 cp $(SAMPDIR)/db/makefile.unx $(DISTDIR)/samples/db
79144b8a
RR
815 cp $(SAMPDIR)/db/*.cpp $(DISTDIR)/samples/db
816 cp $(SAMPDIR)/db/*.h $(DISTDIR)/samples/db
817 cp $(SAMPDIR)/db/*.xpm $(DISTDIR)/samples/db
c661ecca 818
641d87d8
RR
819 mkdir $(DISTDIR)/samples/dialogs
820 cp $(SAMPDIR)/dialogs/Makefile.in $(DISTDIR)/samples/dialogs
c4fda16b 821 cp $(SAMPDIR)/dialogs/makefile.unx $(DISTDIR)/samples/dialogs
641d87d8
RR
822 cp $(SAMPDIR)/dialogs/*.cpp $(DISTDIR)/samples/dialogs
823 cp $(SAMPDIR)/dialogs/*.h $(DISTDIR)/samples/dialogs
824 cp $(SAMPDIR)/dialogs/*.txt $(DISTDIR)/samples/dialogs
6e7b6cc6 825 cp $(SAMPDIR)/dialogs/*.mms $(DISTDIR)/samples/dialogs
c661ecca 826
641d87d8
RR
827 mkdir $(DISTDIR)/samples/dnd
828 cp $(SAMPDIR)/dnd/Makefile.in $(DISTDIR)/samples/dnd
c4fda16b 829 cp $(SAMPDIR)/dnd/makefile.unx $(DISTDIR)/samples/dnd
4b59bea3 830 cp $(SAMPDIR)/dnd/*.wxr $(DISTDIR)/samples/dnd
641d87d8
RR
831 cp $(SAMPDIR)/dnd/*.cpp $(DISTDIR)/samples/dnd
832 cp $(SAMPDIR)/dnd/*.xpm $(DISTDIR)/samples/dnd
833 cp $(SAMPDIR)/dnd/*.txt $(DISTDIR)/samples/dnd
834 cp $(SAMPDIR)/dnd/*.png $(DISTDIR)/samples/dnd
c661ecca 835
641d87d8
RR
836 mkdir $(DISTDIR)/samples/docview
837 cp $(SAMPDIR)/docview/Makefile.in $(DISTDIR)/samples/docview
e9093718 838 cp $(SAMPDIR)/docview/makefile.unx $(DISTDIR)/samples/docview
641d87d8
RR
839 cp $(SAMPDIR)/docview/*.cpp $(DISTDIR)/samples/docview
840 cp $(SAMPDIR)/docview/*.h $(DISTDIR)/samples/docview
841 cp $(SAMPDIR)/docview/*.xpm $(DISTDIR)/samples/docview
c661ecca 842
641d87d8
RR
843 mkdir $(DISTDIR)/samples/docvwmdi
844 cp $(SAMPDIR)/docvwmdi/Makefile.in $(DISTDIR)/samples/docvwmdi
e9093718 845 cp $(SAMPDIR)/docvwmdi/makefile.unx $(DISTDIR)/samples/docvwmdi
641d87d8
RR
846 cp $(SAMPDIR)/docvwmdi/*.cpp $(DISTDIR)/samples/docvwmdi
847 cp $(SAMPDIR)/docvwmdi/*.h $(DISTDIR)/samples/docvwmdi
c661ecca
RR
848
849 mkdir $(DISTDIR)/samples/dragimag
850 cp $(SAMPDIR)/dragimag/Makefile.in $(DISTDIR)/samples/dragimag
851 cp $(SAMPDIR)/dragimag/makefile.unx $(DISTDIR)/samples/dragimag
852 cp $(SAMPDIR)/dragimag/*.cpp $(DISTDIR)/samples/dragimag
853 cp $(SAMPDIR)/dragimag/*.h $(DISTDIR)/samples/dragimag
854 cp $(SAMPDIR)/dragimag/*.xpm $(DISTDIR)/samples/dragimag
855 cp $(SAMPDIR)/dragimag/*.png $(DISTDIR)/samples/dragimag
856
641d87d8
RR
857 mkdir $(DISTDIR)/samples/drawing
858 cp $(SAMPDIR)/drawing/Makefile.in $(DISTDIR)/samples/drawing
e9093718 859 cp $(SAMPDIR)/drawing/makefile.unx $(DISTDIR)/samples/drawing
641d87d8
RR
860 cp $(SAMPDIR)/drawing/*.cpp $(DISTDIR)/samples/drawing
861 cp $(SAMPDIR)/drawing/*.xpm $(DISTDIR)/samples/drawing
b6fa52db 862 cp $(SAMPDIR)/drawing/*.bmp $(DISTDIR)/samples/drawing
c661ecca 863
641d87d8
RR
864 mkdir $(DISTDIR)/samples/dynamic
865 cp $(SAMPDIR)/dynamic/Makefile.in $(DISTDIR)/samples/dynamic
e9093718 866 cp $(SAMPDIR)/dynamic/makefile.unx $(DISTDIR)/samples/dynamic
641d87d8
RR
867 cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
868 cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
c661ecca 869
16b0e4ac
VZ
870 mkdir $(DISTDIR)/samples/erase
871 cp $(SAMPDIR)/erase/Makefile.in $(DISTDIR)/samples/erase
872 cp $(SAMPDIR)/erase/makefile.unx $(DISTDIR)/samples/erase
873 cp $(SAMPDIR)/erase/*.cpp $(DISTDIR)/samples/erase
874
875 mkdir $(DISTDIR)/samples/event
876 cp $(SAMPDIR)/event/Makefile.in $(DISTDIR)/samples/event
877 cp $(SAMPDIR)/event/makefile.unx $(DISTDIR)/samples/event
878 cp $(SAMPDIR)/event/*.cpp $(DISTDIR)/samples/event
879
88413fec
RR
880 mkdir $(DISTDIR)/samples/exec
881 cp $(SAMPDIR)/exec/Makefile.in $(DISTDIR)/samples/exec
e893cd66 882 cp $(SAMPDIR)/exec/makefile.unx $(DISTDIR)/samples/exec
88413fec 883 cp $(SAMPDIR)/exec/*.cpp $(DISTDIR)/samples/exec
c661ecca 884
1e8d2f69
RR
885 mkdir $(DISTDIR)/samples/font
886 cp $(SAMPDIR)/font/Makefile.in $(DISTDIR)/samples/font
887 cp $(SAMPDIR)/font/makefile.unx $(DISTDIR)/samples/font
888 cp $(SAMPDIR)/font/*.cpp $(DISTDIR)/samples/font
c661ecca 889
1e8d2f69
RR
890 mkdir $(DISTDIR)/samples/grid
891 cp $(SAMPDIR)/grid/Makefile.in $(DISTDIR)/samples/grid
892 cp $(SAMPDIR)/grid/makefile.unx $(DISTDIR)/samples/grid
893 cp $(SAMPDIR)/grid/*.cpp $(DISTDIR)/samples/grid
c661ecca 894
e9093718
RR
895 mkdir $(DISTDIR)/samples/help
896 mkdir $(DISTDIR)/samples/help/doc
897 cp $(SAMPDIR)/help/Makefile.in $(DISTDIR)/samples/help
898 cp $(SAMPDIR)/help/makefile.unx $(DISTDIR)/samples/help
899 cp $(SAMPDIR)/help/*.cpp $(DISTDIR)/samples/help
900 cp $(SAMPDIR)/help/*.xpm $(DISTDIR)/samples/help
901 cp $(SAMPDIR)/help/doc/*.* $(DISTDIR)/samples/help/doc
c661ecca 902
641d87d8
RR
903 mkdir $(DISTDIR)/samples/html
904 cp $(SAMPDIR)/html/Makefile.in $(DISTDIR)/samples/html
905 mkdir $(DISTDIR)/samples/html/about
906 cp $(SAMPDIR)/html/about/Makefile.in $(DISTDIR)/samples/html/about
907 cp $(SAMPDIR)/html/about/*.cpp $(DISTDIR)/samples/html/about
908 mkdir $(DISTDIR)/samples/html/about/data
909 cp $(SAMPDIR)/html/about/data/*.htm $(DISTDIR)/samples/html/about/data
910 cp $(SAMPDIR)/html/about/data/*.png $(DISTDIR)/samples/html/about/data
911 mkdir $(DISTDIR)/samples/html/help
912 cp $(SAMPDIR)/html/help/Makefile.in $(DISTDIR)/samples/html/help
913 cp $(SAMPDIR)/html/help/*.cpp $(DISTDIR)/samples/html/help
914 mkdir $(DISTDIR)/samples/html/help/helpfiles
915 cp $(SAMPDIR)/html/help/helpfiles/*.??? $(DISTDIR)/samples/html/help/helpfiles
fc9c7c09
RR
916 mkdir $(DISTDIR)/samples/html/helpview
917 cp $(SAMPDIR)/html/helpview/Makefile.in $(DISTDIR)/samples/html/helpview
918 cp $(SAMPDIR)/html/helpview/*.cpp $(DISTDIR)/samples/html/helpview
919 cp $(SAMPDIR)/html/helpview/*.zip $(DISTDIR)/samples/html/helpview
641d87d8
RR
920 mkdir $(DISTDIR)/samples/html/printing
921 cp $(SAMPDIR)/html/printing/Makefile.in $(DISTDIR)/samples/html/printing
641d87d8 922 cp $(SAMPDIR)/html/printing/*.cpp $(DISTDIR)/samples/html/printing
641d87d8
RR
923 cp $(SAMPDIR)/html/printing/*.htm $(DISTDIR)/samples/html/printing
924 mkdir $(DISTDIR)/samples/html/test
925 cp $(SAMPDIR)/html/test/Makefile.in $(DISTDIR)/samples/html/test
926 cp $(SAMPDIR)/html/test/*.cpp $(DISTDIR)/samples/html/test
927 cp $(SAMPDIR)/html/test/*.bmp $(DISTDIR)/samples/html/test
928 cp $(SAMPDIR)/html/test/*.png $(DISTDIR)/samples/html/test
b6fa52db 929 cp $(SAMPDIR)/html/test/*.gif $(DISTDIR)/samples/html/test
641d87d8
RR
930 cp $(SAMPDIR)/html/test/*.htm $(DISTDIR)/samples/html/test
931 cp $(SAMPDIR)/html/test/*.html $(DISTDIR)/samples/html/test
932 mkdir $(DISTDIR)/samples/html/virtual
933 cp $(SAMPDIR)/html/virtual/Makefile.in $(DISTDIR)/samples/html/virtual
934 cp $(SAMPDIR)/html/virtual/*.cpp $(DISTDIR)/samples/html/virtual
935 cp $(SAMPDIR)/html/virtual/*.htm $(DISTDIR)/samples/html/virtual
936 mkdir $(DISTDIR)/samples/html/widget
937 cp $(SAMPDIR)/html/widget/Makefile.in $(DISTDIR)/samples/html/widget
938 cp $(SAMPDIR)/html/widget/*.cpp $(DISTDIR)/samples/html/widget
939 cp $(SAMPDIR)/html/widget/*.htm $(DISTDIR)/samples/html/widget
940 mkdir $(DISTDIR)/samples/html/zip
941 cp $(SAMPDIR)/html/zip/Makefile.in $(DISTDIR)/samples/html/zip
942 cp $(SAMPDIR)/html/zip/*.cpp $(DISTDIR)/samples/html/zip
943 cp $(SAMPDIR)/html/zip/*.htm $(DISTDIR)/samples/html/zip
944 cp $(SAMPDIR)/html/zip/*.zip $(DISTDIR)/samples/html/zip
c661ecca 945
641d87d8
RR
946 mkdir $(DISTDIR)/samples/image
947 cp $(SAMPDIR)/image/Makefile.in $(DISTDIR)/samples/image
e9093718 948 cp $(SAMPDIR)/image/makefile.unx $(DISTDIR)/samples/image
641d87d8 949 cp $(SAMPDIR)/image/*.cpp $(DISTDIR)/samples/image
6e7b6cc6 950 cp $(SAMPDIR)/image/*.mms $(DISTDIR)/samples/image
641d87d8 951 cp $(SAMPDIR)/image/horse.* $(DISTDIR)/samples/image
1e8d2f69 952 cp $(SAMPDIR)/image/smile.xbm $(DISTDIR)/samples/image
ff7c6c9c 953 cp $(SAMPDIR)/image/smile.xpm $(DISTDIR)/samples/image
e59a8895 954
c09ab26a
RR
955 mkdir $(DISTDIR)/samples/internat
956 mkdir $(DISTDIR)/samples/internat/de
957 mkdir $(DISTDIR)/samples/internat/fr
d6e969f6 958 mkdir $(DISTDIR)/samples/internat/ru
c09ab26a 959 cp $(SAMPDIR)/internat/Makefile.in $(DISTDIR)/samples/internat
e9093718 960 cp $(SAMPDIR)/internat/makefile.unx $(DISTDIR)/samples/internat
c09ab26a
RR
961 cp $(SAMPDIR)/internat/*.cpp $(DISTDIR)/samples/internat
962 cp $(SAMPDIR)/internat/*.xpm $(DISTDIR)/samples/internat
963 cp $(SAMPDIR)/internat/*.txt $(DISTDIR)/samples/internat
964 cp $(SAMPDIR)/internat/*.po $(DISTDIR)/samples/internat
b6fa52db 965 cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
c09ab26a 966 cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
d6e969f6 967 cp $(SAMPDIR)/internat/ru/*.mo $(DISTDIR)/samples/internat/ru
c09ab26a 968 cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
b6fa52db 969 cp $(SAMPDIR)/internat/de/*.po $(DISTDIR)/samples/internat/de
d6e969f6 970 cp $(SAMPDIR)/internat/ru/*.po $(DISTDIR)/samples/internat/ru
c661ecca
RR
971
972 mkdir $(DISTDIR)/samples/ipc
973 cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
e893cd66 974 cp $(SAMPDIR)/ipc/makefile.unx $(DISTDIR)/samples/ipc
c661ecca
RR
975 cp $(SAMPDIR)/ipc/*.cpp $(DISTDIR)/samples/ipc
976 cp $(SAMPDIR)/ipc/*.h $(DISTDIR)/samples/ipc
977 cp $(SAMPDIR)/ipc/*.xpm $(DISTDIR)/samples/ipc
978
ceded8b9
RL
979 mkdir $(DISTDIR)/samples/joytest
980 cp $(SAMPDIR)/joytest/Makefile.in $(DISTDIR)/samples/joytest
981 cp $(SAMPDIR)/joytest/makefile.unx $(DISTDIR)/samples/joytest
982 cp $(SAMPDIR)/joytest/*.cpp $(DISTDIR)/samples/joytest
983 cp $(SAMPDIR)/joytest/*.h $(DISTDIR)/samples/joytest
984 cp $(SAMPDIR)/joytest/*.wav $(DISTDIR)/samples/joytest
985
641d87d8
RR
986 mkdir $(DISTDIR)/samples/layout
987 cp $(SAMPDIR)/layout/Makefile.in $(DISTDIR)/samples/layout
e9093718 988 cp $(SAMPDIR)/layout/makefile.unx $(DISTDIR)/samples/layout
641d87d8
RR
989 cp $(SAMPDIR)/layout/*.cpp $(DISTDIR)/samples/layout
990 cp $(SAMPDIR)/layout/*.h $(DISTDIR)/samples/layout
c661ecca 991
641d87d8 992 mkdir $(DISTDIR)/samples/listctrl
e9093718 993 mkdir $(DISTDIR)/samples/listctrl/bitmaps
641d87d8 994 cp $(SAMPDIR)/listctrl/Makefile.in $(DISTDIR)/samples/listctrl
e9093718 995 cp $(SAMPDIR)/listctrl/makefile.unx $(DISTDIR)/samples/listctrl
641d87d8
RR
996 cp $(SAMPDIR)/listctrl/*.cpp $(DISTDIR)/samples/listctrl
997 cp $(SAMPDIR)/listctrl/*.h $(DISTDIR)/samples/listctrl
998 cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl
d8d474af 999 cp $(SAMPDIR)/listctrl/bitmaps/*.xpm $(DISTDIR)/samples/listctrl/bitmaps
c661ecca 1000
641d87d8 1001 mkdir $(DISTDIR)/samples/mdi
e9093718 1002 mkdir $(DISTDIR)/samples/mdi/bitmaps
641d87d8 1003 cp $(SAMPDIR)/mdi/Makefile.in $(DISTDIR)/samples/mdi
e9093718 1004 cp $(SAMPDIR)/mdi/makefile.unx $(DISTDIR)/samples/mdi
641d87d8
RR
1005 cp $(SAMPDIR)/mdi/*.cpp $(DISTDIR)/samples/mdi
1006 cp $(SAMPDIR)/mdi/*.h $(DISTDIR)/samples/mdi
1007 cp $(SAMPDIR)/mdi/*.xpm $(DISTDIR)/samples/mdi
d8d474af 1008 cp $(SAMPDIR)/mdi/bitmaps/*.xpm $(DISTDIR)/samples/mdi/bitmaps
c661ecca 1009
e9093718
RR
1010 mkdir $(DISTDIR)/samples/memcheck
1011 cp $(SAMPDIR)/memcheck/Makefile.in $(DISTDIR)/samples/memcheck
1012 cp $(SAMPDIR)/memcheck/makefile.unx $(DISTDIR)/samples/memcheck
1013 cp $(SAMPDIR)/memcheck/*.cpp $(DISTDIR)/samples/memcheck
1014 cp $(SAMPDIR)/memcheck/*.xpm $(DISTDIR)/samples/memcheck
c661ecca 1015
e9093718
RR
1016 mkdir $(DISTDIR)/samples/menu
1017 cp $(SAMPDIR)/menu/Makefile.in $(DISTDIR)/samples/menu
1018 cp $(SAMPDIR)/menu/makefile.unx $(DISTDIR)/samples/menu
1019 cp $(SAMPDIR)/menu/*.cpp $(DISTDIR)/samples/menu
c661ecca 1020
641d87d8 1021 mkdir $(DISTDIR)/samples/minifram
e9093718 1022 mkdir $(DISTDIR)/samples/minifram/bitmaps
641d87d8 1023 cp $(SAMPDIR)/minifram/Makefile.in $(DISTDIR)/samples/minifram
e9093718 1024 cp $(SAMPDIR)/minifram/makefile.unx $(DISTDIR)/samples/minifram
641d87d8
RR
1025 cp $(SAMPDIR)/minifram/*.cpp $(DISTDIR)/samples/minifram
1026 cp $(SAMPDIR)/minifram/*.h $(DISTDIR)/samples/minifram
1027 cp $(SAMPDIR)/minifram/*.xpm $(DISTDIR)/samples/minifram
d8d474af 1028 cp $(SAMPDIR)/minifram/bitmaps/*.xpm $(DISTDIR)/samples/minifram/bitmaps
c661ecca 1029
641d87d8
RR
1030 mkdir $(DISTDIR)/samples/minimal
1031 cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
e9093718 1032 cp $(SAMPDIR)/minimal/makefile.unx $(DISTDIR)/samples/minimal
641d87d8
RR
1033 cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
1034 cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
6e7b6cc6 1035 cp $(SAMPDIR)/minimal/*.mms $(DISTDIR)/samples/minimal
c661ecca 1036
dfd6b52f
RR
1037 mkdir $(DISTDIR)/samples/dialup
1038 cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
1039 cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
1040 cp $(SAMPDIR)/dialup/*.cpp $(DISTDIR)/samples/dialup
c661ecca 1041
f85afd4e
MB
1042 mkdir $(DISTDIR)/samples/newgrid
1043 cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
1e8d2f69 1044 cp $(SAMPDIR)/newgrid/makefile.unx $(DISTDIR)/samples/newgrid
f85afd4e
MB
1045 cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
1046 cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
c661ecca 1047
641d87d8
RR
1048 mkdir $(DISTDIR)/samples/notebook
1049 cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
1e8d2f69 1050 cp $(SAMPDIR)/notebook/makefile.unx $(DISTDIR)/samples/notebook
641d87d8
RR
1051 cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
1052 cp $(SAMPDIR)/notebook/*.h $(DISTDIR)/samples/notebook
c661ecca
RR
1053
1054 mkdir $(DISTDIR)/samples/opengl
1055 cp $(SAMPDIR)/opengl/Makefile.in $(DISTDIR)/samples/opengl
1056 mkdir $(DISTDIR)/samples/opengl/penguin
1057 cp $(SAMPDIR)/opengl/penguin/Makefile.in $(DISTDIR)/samples/opengl/penguin
1058 cp $(SAMPDIR)/opengl/penguin/makefile.unx $(DISTDIR)/samples/opengl/penguin
1059 cp $(SAMPDIR)/opengl/penguin/*.cpp $(DISTDIR)/samples/opengl/penguin
1060 cp $(SAMPDIR)/opengl/penguin/*.c $(DISTDIR)/samples/opengl/penguin
1061 cp $(SAMPDIR)/opengl/penguin/*.h $(DISTDIR)/samples/opengl/penguin
1062 cp $(SAMPDIR)/opengl/penguin/*.lwo $(DISTDIR)/samples/opengl/penguin
1063 mkdir $(DISTDIR)/samples/opengl/cube
1064 cp $(SAMPDIR)/opengl/cube/Makefile.in $(DISTDIR)/samples/opengl/cube
1065 cp $(SAMPDIR)/opengl/cube/makefile.unx $(DISTDIR)/samples/opengl/cube
1066 cp $(SAMPDIR)/opengl/cube/*.cpp $(DISTDIR)/samples/opengl/cube
1067 cp $(SAMPDIR)/opengl/cube/*.h $(DISTDIR)/samples/opengl/cube
1068 mkdir $(DISTDIR)/samples/opengl/isosurf
1069 cp $(SAMPDIR)/opengl/isosurf/Makefile.in $(DISTDIR)/samples/opengl/isosurf
1070 cp $(SAMPDIR)/opengl/isosurf/makefile.unx $(DISTDIR)/samples/opengl/isosurf
1071 cp $(SAMPDIR)/opengl/isosurf/*.cpp $(DISTDIR)/samples/opengl/isosurf
1072 cp $(SAMPDIR)/opengl/isosurf/*.h $(DISTDIR)/samples/opengl/isosurf
1073 cp $(SAMPDIR)/opengl/isosurf/*.gz $(DISTDIR)/samples/opengl/isosurf
1074
79144b8a
RR
1075 mkdir $(DISTDIR)/samples/png
1076 cp $(SAMPDIR)/png/Makefile.in $(DISTDIR)/samples/png
1e8d2f69 1077 cp $(SAMPDIR)/png/makefile.unx $(DISTDIR)/samples/png
79144b8a
RR
1078 cp $(SAMPDIR)/png/*.cpp $(DISTDIR)/samples/png
1079 cp $(SAMPDIR)/png/*.h $(DISTDIR)/samples/png
1080 cp $(SAMPDIR)/png/*.png $(DISTDIR)/samples/png
c661ecca 1081
1e8d2f69
RR
1082 mkdir $(DISTDIR)/samples/printing
1083 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
1084 cp $(SAMPDIR)/printing/makefile.unx $(DISTDIR)/samples/printing
1085 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
1086 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
1087 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
1088 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
c661ecca 1089
3fd528b9
RR
1090 mkdir $(DISTDIR)/samples/resource
1091 cp $(SAMPDIR)/resource/Makefile.in $(DISTDIR)/samples/resource
1e8d2f69 1092 cp $(SAMPDIR)/resource/makefile.unx $(DISTDIR)/samples/resource
3fd528b9
RR
1093 cp $(SAMPDIR)/resource/*.cpp $(DISTDIR)/samples/resource
1094 cp $(SAMPDIR)/resource/*.h $(DISTDIR)/samples/resource
1095 cp $(SAMPDIR)/resource/*.wxr $(DISTDIR)/samples/resource
c661ecca 1096
46132182
RR
1097 mkdir $(DISTDIR)/samples/rotate
1098 cp $(SAMPDIR)/rotate/Makefile.in $(DISTDIR)/samples/rotate
1099 cp $(SAMPDIR)/rotate/makefile.unx $(DISTDIR)/samples/rotate
1100 cp $(SAMPDIR)/rotate/*.cpp $(DISTDIR)/samples/rotate
1101 cp $(SAMPDIR)/rotate/*.bmp $(DISTDIR)/samples/rotate
e59a8895 1102
3fd528b9
RR
1103 mkdir $(DISTDIR)/samples/richedit
1104 cp $(SAMPDIR)/richedit/Makefile.in $(DISTDIR)/samples/richedit
e893cd66 1105 cp $(SAMPDIR)/richedit/makefile.unx $(DISTDIR)/samples/richedit
3fd528b9
RR
1106 cp $(SAMPDIR)/richedit/*.cpp $(DISTDIR)/samples/richedit
1107 cp $(SAMPDIR)/richedit/*.h $(DISTDIR)/samples/richedit
1108 cp $(SAMPDIR)/richedit/*.xpm $(DISTDIR)/samples/richedit
1109 cp $(SAMPDIR)/richedit/README $(DISTDIR)/samples/richedit
1110 cp $(SAMPDIR)/richedit/TODO $(DISTDIR)/samples/richedit
e59a8895 1111
641d87d8
RR
1112 mkdir $(DISTDIR)/samples/proplist
1113 cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
e893cd66 1114 cp $(SAMPDIR)/proplist/makefile.unx $(DISTDIR)/samples/proplist
641d87d8
RR
1115 cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
1116 cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
e59a8895 1117
ba0e7d41
RR
1118 mkdir $(DISTDIR)/samples/propsize
1119 cp $(SAMPDIR)/propsize/Makefile.in $(DISTDIR)/samples/propsize
e893cd66 1120 cp $(SAMPDIR)/propsize/makefile.unx $(DISTDIR)/samples/propsize
ba0e7d41
RR
1121 cp $(SAMPDIR)/propsize/*.cpp $(DISTDIR)/samples/propsize
1122 cp $(SAMPDIR)/propsize/*.xpm $(DISTDIR)/samples/propsize
e59a8895 1123
641d87d8
RR
1124 mkdir $(DISTDIR)/samples/sashtest
1125 cp $(SAMPDIR)/sashtest/Makefile.in $(DISTDIR)/samples/sashtest
e893cd66 1126 cp $(SAMPDIR)/sashtest/makefile.unx $(DISTDIR)/samples/sashtest
641d87d8
RR
1127 cp $(SAMPDIR)/sashtest/*.cpp $(DISTDIR)/samples/sashtest
1128 cp $(SAMPDIR)/sashtest/*.h $(DISTDIR)/samples/sashtest
e59a8895 1129
641d87d8
RR
1130 mkdir $(DISTDIR)/samples/scroll
1131 cp $(SAMPDIR)/scroll/Makefile.in $(DISTDIR)/samples/scroll
1e8d2f69 1132 cp $(SAMPDIR)/scroll/makefile.unx $(DISTDIR)/samples/scroll
641d87d8 1133 cp $(SAMPDIR)/scroll/*.cpp $(DISTDIR)/samples/scroll
e59a8895 1134
d8d474af
RR
1135 mkdir $(DISTDIR)/samples/scrollsub
1136 cp $(SAMPDIR)/scrollsub/Makefile.in $(DISTDIR)/samples/scrollsub
1e8d2f69 1137 cp $(SAMPDIR)/scrollsub/makefile.unx $(DISTDIR)/samples/scrollsub
d8d474af 1138 cp $(SAMPDIR)/scrollsub/*.cpp $(DISTDIR)/samples/scrollsub
e59a8895 1139
c661ecca
RR
1140 mkdir $(DISTDIR)/samples/sockets
1141 cp $(SAMPDIR)/sockets/Makefile.in $(DISTDIR)/samples/sockets
e893cd66 1142 cp $(SAMPDIR)/sockets/makefile.unx $(DISTDIR)/samples/sockets
c661ecca
RR
1143 cp $(SAMPDIR)/sockets/*.cpp $(DISTDIR)/samples/sockets
1144 cp $(SAMPDIR)/sockets/*.xpm $(DISTDIR)/samples/sockets
1145
641d87d8
RR
1146 mkdir $(DISTDIR)/samples/splitter
1147 cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
e893cd66 1148 cp $(SAMPDIR)/splitter/makefile.unx $(DISTDIR)/samples/splitter
641d87d8 1149 cp $(SAMPDIR)/splitter/*.cpp $(DISTDIR)/samples/splitter
e59a8895 1150
2286341c
VZ
1151 mkdir $(DISTDIR)/samples/statbar
1152 cp $(SAMPDIR)/statbar/Makefile.in $(DISTDIR)/samples/statbar
e893cd66 1153 cp $(SAMPDIR)/statbar/makefile.unx $(DISTDIR)/samples/statbar
2286341c
VZ
1154 cp $(SAMPDIR)/statbar/*.cpp $(DISTDIR)/samples/statbar
1155 cp $(SAMPDIR)/statbar/*.xpm $(DISTDIR)/samples/statbar
1156
641d87d8
RR
1157 mkdir $(DISTDIR)/samples/text
1158 cp $(SAMPDIR)/text/Makefile.in $(DISTDIR)/samples/text
1e8d2f69 1159 cp $(SAMPDIR)/text/makefile.unx $(DISTDIR)/samples/text
641d87d8
RR
1160 cp $(SAMPDIR)/text/*.cpp $(DISTDIR)/samples/text
1161 cp $(SAMPDIR)/text/*.xpm $(DISTDIR)/samples/text
e59a8895 1162
641d87d8
RR
1163 mkdir $(DISTDIR)/samples/thread
1164 cp $(SAMPDIR)/thread/Makefile.in $(DISTDIR)/samples/thread
1e8d2f69 1165 cp $(SAMPDIR)/thread/makefile.unx $(DISTDIR)/samples/thread
641d87d8 1166 cp $(SAMPDIR)/thread/*.cpp $(DISTDIR)/samples/thread
e59a8895 1167
641d87d8
RR
1168 mkdir $(DISTDIR)/samples/toolbar
1169 cp $(SAMPDIR)/toolbar/Makefile.in $(DISTDIR)/samples/toolbar
e893cd66 1170 cp $(SAMPDIR)/toolbar/makefile.unx $(DISTDIR)/samples/toolbar
641d87d8 1171 cp $(SAMPDIR)/toolbar/*.cpp $(DISTDIR)/samples/toolbar
641d87d8 1172 cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar
d8d474af
RR
1173 mkdir $(DISTDIR)/samples/toolbar/bitmaps
1174 cp $(SAMPDIR)/toolbar/bitmaps/*.xpm $(DISTDIR)/samples/toolbar/bitmaps
e59a8895 1175
641d87d8
RR
1176 mkdir $(DISTDIR)/samples/treectrl
1177 cp $(SAMPDIR)/treectrl/Makefile.in $(DISTDIR)/samples/treectrl
e893cd66 1178 cp $(SAMPDIR)/treectrl/makefile.unx $(DISTDIR)/samples/treectrl
641d87d8
RR
1179 cp $(SAMPDIR)/treectrl/*.cpp $(DISTDIR)/samples/treectrl
1180 cp $(SAMPDIR)/treectrl/*.h $(DISTDIR)/samples/treectrl
1181 cp $(SAMPDIR)/treectrl/*.xpm $(DISTDIR)/samples/treectrl
c661ecca
RR
1182 mkdir $(DISTDIR)/samples/treectrl/bitmaps
1183 cp $(SAMPDIR)/treectrl/bitmaps/*.bmp $(DISTDIR)/samples/treectrl/bitmaps
e59a8895 1184
c661ecca
RR
1185 mkdir $(DISTDIR)/samples/treelay
1186 cp $(SAMPDIR)/treelay/Makefile.in $(DISTDIR)/samples/treelay
1187 cp $(SAMPDIR)/treelay/makefile.unx $(DISTDIR)/samples/treelay
1188 cp $(SAMPDIR)/treelay/*.cpp $(DISTDIR)/samples/treelay
1189 cp $(SAMPDIR)/treelay/*.h $(DISTDIR)/samples/treelay
e59a8895 1190
641d87d8
RR
1191 mkdir $(DISTDIR)/samples/typetest
1192 cp $(SAMPDIR)/typetest/Makefile.in $(DISTDIR)/samples/typetest
e893cd66 1193 cp $(SAMPDIR)/typetest/makefile.unx $(DISTDIR)/samples/typetest
641d87d8
RR
1194 cp $(SAMPDIR)/typetest/*.cpp $(DISTDIR)/samples/typetest
1195 cp $(SAMPDIR)/typetest/*.h $(DISTDIR)/samples/typetest
1196 cp $(SAMPDIR)/typetest/*.xpm $(DISTDIR)/samples/typetest
e59a8895 1197
641d87d8
RR
1198 mkdir $(DISTDIR)/samples/validate
1199 cp $(SAMPDIR)/validate/Makefile.in $(DISTDIR)/samples/validate
e893cd66 1200 cp $(SAMPDIR)/validate/makefile.unx $(DISTDIR)/samples/validate
641d87d8
RR
1201 cp $(SAMPDIR)/validate/*.cpp $(DISTDIR)/samples/validate
1202 cp $(SAMPDIR)/validate/*.h $(DISTDIR)/samples/validate
1203 cp $(SAMPDIR)/validate/*.xpm $(DISTDIR)/samples/validate
e59a8895 1204
641d87d8
RR
1205 mkdir $(DISTDIR)/samples/wizard
1206 cp $(SAMPDIR)/wizard/Makefile.in $(DISTDIR)/samples/wizard
e893cd66 1207 cp $(SAMPDIR)/wizard/makefile.unx $(DISTDIR)/samples/wizard
641d87d8
RR
1208 cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
1209 cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
e59a8895 1210
3a922bb4
RL
1211 mkdir $(DISTDIR)/samples/widgets
1212 mkdir $(DISTDIR)/samples/widgets/icons
1213 cp $(SAMPDIR)/widgets/Makefile.in $(DISTDIR)/samples/widgets
1214 cp $(SAMPDIR)/widgets/*.{cpp,h,rc} $(DISTDIR)/samples/widgets
1215 cp $(SAMPDIR)/widgets/icons/*.xpm $(DISTDIR)/samples/widgets/icons
1216
2224580a 1217UTILS_DIST: ALL_GUI_DIST
39fc1a6a
RL
1218 mkdir $(DISTDIR)/utils
1219 cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
1220 cp $(UTILSDIR)/configure $(DISTDIR)/utils
1221 cp $(UTILSDIR)/configure.in $(DISTDIR)/utils
1222
1223 mkdir $(DISTDIR)/utils/tex2rtf
1224 mkdir $(DISTDIR)/utils/tex2rtf/src
1225 cp $(UTILSDIR)/tex2rtf/*.in $(DISTDIR)/utils/tex2rtf
1226 cp $(UTILSDIR)/tex2rtf/src/*.h $(DISTDIR)/utils/tex2rtf/src
1227 cp $(UTILSDIR)/tex2rtf/src/*.in $(DISTDIR)/utils/tex2rtf/src
1228 cp $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src
1229 cp $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src
1230
1231 mkdir $(DISTDIR)/utils/makegen
1232 mkdir $(DISTDIR)/utils/makegen/templates
1233 cp $(UTILSDIR)/makegen/Makefile.in $(DISTDIR)/utils/makegen
1234 cp $(UTILSDIR)/makegen/*.cpp $(DISTDIR)/utils/makegen
1235 cp $(UTILSDIR)/makegen/templates/*.* $(DISTDIR)/utils/makegen/templates
bdad4e7e 1236
5d9fe089
RR
1237 mkdir $(DISTDIR)/utils/hhp2cached
1238 cp $(UTILSDIR)/hhp2cached/*.* $(DISTDIR)/utils/hhp2cached
1239
1240 mkdir $(DISTDIR)/utils/HelpGen
1241 mkdir $(DISTDIR)/utils/HelpGen/src
1242 cp $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
1243 cp $(UTILSDIR)/HelpGen/src/*.* $(DISTDIR)/utils/HelpGen/src
1244
1245 cp -R $(UTILSDIR)/dialoged $(DISTDIR)/utils/dialoged
1246
2224580a 1247MISC_DIST: ALL_GUI_DIST
a6f3598d
RR
1248 mkdir $(DISTDIR)/misc
1249 mkdir $(DISTDIR)/misc/afm
1250 cp $(MISCDIR)/afm/*.afm $(DISTDIR)/misc/afm
1251 mkdir $(DISTDIR)/misc/gs_afm
1252 cp $(MISCDIR)/gs_afm/*.afm $(DISTDIR)/misc/gs_afm
2224580a 1253
f6bcfd97
BP
1254INTL_DIST:
1255 mkdir $(DISTDIR)/locale
1256 cp $(INTLDIR)/Makefile $(DISTDIR)/locale
1257 cp $(INTLDIR)/*.po $(DISTDIR)/locale
1258 -cp $(INTLDIR)/*.mo $(DISTDIR)/locale
1259
e4c4c1c6
RL
1260MANUAL_DIST:
1261 mkdir $(DISTDIR)/docs
1262 mkdir $(DISTDIR)/docs/latex
1263 mkdir $(DISTDIR)/docs/latex/wx
1264 cp $(DOCDIR)/latex/wx/*.tex $(DISTDIR)/docs/latex/wx
1265 cp $(DOCDIR)/latex/wx/*.gif $(DISTDIR)/docs/latex/wx
1266 cp $(DOCDIR)/latex/wx/*.ini $(DISTDIR)/docs/latex/wx
1267 cp $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
1268 cp $(DOCDIR)/latex/wx/*.sty $(DISTDIR)/docs/latex/wx
1269
9b0326f7
RL
1270# this target does not generate a complete wxPython dist, it only includes
1271# those files needed for the Debian source package.
1272# see utils/wxPython/distrib for scripts to make a proper wxPython dist.
1273PYTHON_DIST:
f6bcfd97
BP
1274 mkdir $(DISTDIR)/wxPython
1275 mkdir $(DISTDIR)/wxPython/contrib
1276 mkdir $(DISTDIR)/wxPython/contrib/glcanvas
1277 mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
1278 mkdir $(DISTDIR)/wxPython/contrib/ogl
1279 mkdir $(DISTDIR)/wxPython/contrib/stc
3a922bb4 1280 mkdir $(DISTDIR)/wxPython/contrib/xrc
f6bcfd97
BP
1281 mkdir $(DISTDIR)/wxPython/demo
1282 mkdir $(DISTDIR)/wxPython/demo/bitmaps
1283 mkdir $(DISTDIR)/wxPython/demo/data
f6bcfd97
BP
1284 mkdir $(DISTDIR)/wxPython/src
1285 mkdir $(DISTDIR)/wxPython/src/gtk
1286 mkdir $(DISTDIR)/wxPython/wxPython
1287 mkdir $(DISTDIR)/wxPython/wxPython/lib
1288 mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
3a922bb4 1289 mkdir $(DISTDIR)/wxPython/wxPython/lib/mixins
f6bcfd97
BP
1290
1291 cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
050207ec
RL
1292 cp $(WXDIR)/wxPython/*.py $(DISTDIR)/wxPython
1293 cp $(WXDIR)/wxPython/setup.cfg $(DISTDIR)/wxPython
1294 cp $(WXDIR)/wxPython/MANIFEST.in $(DISTDIR)/wxPython
f6bcfd97
BP
1295 -cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
1296 cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
1297 -cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
1298 -cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
3a922bb4 1299 -cp $(WXDIR)/wxPython/contrib/xrc/xrc.* $(DISTDIR)/wxPython/contrib/xrc
f6bcfd97
BP
1300 -cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
1301 -cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
1302 -cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
f6bcfd97
BP
1303 -cp $(WXDIR)/wxPython/src/* $(DISTDIR)/wxPython/src
1304 cp $(WXDIR)/wxPython/src/gtk/*.py $(DISTDIR)/wxPython/src/gtk
1305 cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
1306 cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
1307 cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
3a922bb4 1308 cp $(WXDIR)/wxPython/wxPython/lib/mixins/*.py $(DISTDIR)/wxPython/wxPython/lib/mixins
9b0326f7 1309
2224580a 1310distclean:
8b17ba72 1311 $(RM) -r _dist_dir
a4aad961 1312
d6e969f6
VZ
1313# VZ: the -only targets allow to do "make dist bzip-dist-only" without copying
1314# the files twice
1315dist-only:
1316 @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
16b0e4ac 1317 @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
d6e969f6
VZ
1318 @if test "$(USE_GUI)" = 1; then \
1319 cd $(DISTDIR); \
1320 mv samples wxSamples-$(VER_SUFFIX); \
1321 echo "*** Creating wxSamples archive..."; \
1322 tar ch wxSamples-$(VER_SUFFIX) | gzip -f9 > ../../$(WXSAMPLES); \
1323 mv wxSamples-$(VER_SUFFIX) samples; \
1324 mv demos wxDemos-$(VER_SUFFIX); \
1325 echo "*** Creating wxDemos archive..."; \
1326 tar ch wxDemos-$(VER_SUFFIX) | gzip -f9 > ../../$(WXDEMOS); \
1327 mv wxDemos-$(VER_SUFFIX) demos; \
1328 fi
1329
2224580a
VZ
1330dist: @GUIDIST@
1331 @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
16b0e4ac 1332 @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
2224580a
VZ
1333 @if test "$(USE_GUI)" = 1; then \
1334 cd $(DISTDIR); \
31fe72b6 1335 mv samples wxSamples-$(VER_SUFFIX); \
d6e969f6 1336 echo "*** Creating wxSamples archive..."; \
31fe72b6
VZ
1337 tar ch wxSamples-$(VER_SUFFIX) | gzip -f9 > ../../$(WXSAMPLES); \
1338 mv wxSamples-$(VER_SUFFIX) samples; \
1339 mv demos wxDemos-$(VER_SUFFIX); \
d6e969f6 1340 echo "*** Creating wxDemos archive..."; \
31fe72b6
VZ
1341 tar ch wxDemos-$(VER_SUFFIX) | gzip -f9 > ../../$(WXDEMOS); \
1342 mv wxDemos-$(VER_SUFFIX) demos; \
2224580a
VZ
1343 fi
1344
d6e969f6
VZ
1345bzip-dist-only:
1346 @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
16b0e4ac 1347 @cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP);
d6e969f6
VZ
1348 @if test "$(USE_GUI)" = 1; then \
1349 cd $(DISTDIR); \
1350 mv samples wxSamples-${VER_SUFFIX}; \
1351 echo "*** Creating wxSamples archive..."; \
1352 tar ch wxSamples-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
1353 mv wxSamples-${VER_SUFFIX} samples; \
1354 mv demos wxDemos-${VER_SUFFIX}; \
1355 echo "*** Creating wxDemos archive..."; \
1356 tar ch wxDemos-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
1357 mv wxDemos-${VER_SUFFIX} demos; \
1358 fi
16b0e4ac 1359
f6bcfd97 1360bzip-dist: @GUIDIST@
f6bcfd97 1361 @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
16b0e4ac 1362 @cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
f6bcfd97
BP
1363 @if test "$(USE_GUI)" = 1; then \
1364 cd $(DISTDIR); \
1365 mv samples wxSamples; \
1366 tar ch wxSamples | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
1367 mv wxSamples samples; \
1368 mv demos wxDemos; \
1369 tar ch wxDemos | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
1370 mv wxDemos demos; \
1371 fi
1372
3a922bb4 1373debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
e4c4c1c6 1374 mkdir $(DISTDIR)/debian
676b8fb6 1375 -cp $(WXDIR)/debian/* $(DISTDIR)/debian
e4c4c1c6
RL
1376 cp $(DOCDIR)/licence.txt $(DISTDIR)/docs
1377 cp $(DOCDIR)/licendoc.txt $(DISTDIR)/docs
1378 cp $(DOCDIR)/preamble.txt $(DISTDIR)/docs
6be0044c 1379 rm -f $(DISTDIR)/*.spec
3a922bb4
RL
1380
1381 @# now prune away a lot of the crap included by using cp -R
1382 @# in other dist targets. Ugly and hardly portable but it
1383 @# will run on any Debian box and that's enough for now.
1384
655b7383 1385 find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
3a922bb4
RL
1386 \( -name "makefile.*" -a ! -name "makefile.unx" \) \) \
1387 -print0 | xargs -0 rm -rf
1388
9b0326f7
RL
1389 rm -rf $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
1390 mv $(DISTDIR) $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
e4c4c1c6 1391
7b7a7637 1392debian-native-dist: @GUIDIST@ UNIV_DIST MANUAL_DIST PYTHON_DIST
3a922bb4
RL
1393
1394debian-msw-dirs:
1395 mkdir $(DISTDIR)/include/wx/msw
1396 mkdir $(DISTDIR)/src/msw
1397
1398
ad9edf45 1399clean:
8b17ba72 1400 $(RM) *.o
5586805b 1401 $(RM) *.d
8b17ba72
RR
1402 $(RM) parser.c
1403 $(RM) lexer.c
3a922bb4
RL
1404 $(RM) $(build_libdir)/lib*
1405 # Don't remove this lot, configure will reuse it
1406 # if it's still good
1407 # $(RM) -r $(build_libdir)/wx/*
ad9edf45
RR
1408
1409cleanall: clean
862fed93
RD
1410
1411
1412RPMTOP=_dist_dir/_rpm_top
1413
1414rpm: dist
1415 @echo "*** Building RPMs ***"
1416 -mkdir $(RPMTOP)
1417 -mkdir $(RPMTOP)/SOURCES
1418 -mkdir $(RPMTOP)/SPECS
1419 -mkdir $(RPMTOP)/BUILD
1420 -mkdir $(RPMTOP)/RPMS
1421 -mkdir $(RPMTOP)/SRPMS
1422 cp -f $(WXARCHIVE) $(RPMTOP)/SOURCES
1423 rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
1424 mv -f `find $(RPMTOP) -name "wx$(TARGET)*.rpm"` .
3a922bb4 1425