+# VZ: the -only targets allow to do "make dist bzip-dist-only" without copying
+# the files twice
+dist-only:
+ @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
+ @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
+ @if test "$(USE_GUI)" = 1; then \
+ cd $(DISTDIR); \
+ mv samples wxSamples-$(VER_SUFFIX); \
+ echo "*** Creating wxSamples archive..."; \
+ tar ch wxSamples-$(VER_SUFFIX) | gzip -f9 > ../../$(WXSAMPLES); \
+ mv wxSamples-$(VER_SUFFIX) samples; \
+ mv demos wxDemos-$(VER_SUFFIX); \
+ echo "*** Creating wxDemos archive..."; \
+ tar ch wxDemos-$(VER_SUFFIX) | gzip -f9 > ../../$(WXDEMOS); \
+ mv wxDemos-$(VER_SUFFIX) demos; \
+ fi
+
+dist: @GUIDIST@
+ cp $(WXDIR)/src/files.lst $(DISTDIR)/src
+ @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
+ @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
+ @if test "$(USE_GUI)" = 1; then \
+ cd $(DISTDIR); \
+ mv samples wxSamples-$(VER_SUFFIX); \
+ echo "*** Creating wxSamples archive..."; \
+ tar ch wxSamples-$(VER_SUFFIX) | gzip -f9 > ../../$(WXSAMPLES); \
+ mv wxSamples-$(VER_SUFFIX) samples; \
+ mv demos wxDemos-$(VER_SUFFIX); \
+ echo "*** Creating wxDemos archive..."; \
+ tar ch wxDemos-$(VER_SUFFIX) | gzip -f9 > ../../$(WXDEMOS); \
+ mv wxDemos-$(VER_SUFFIX) demos; \
+ fi
+
+bzip-dist-only:
+ @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
+ @cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP);
+ @if test "$(USE_GUI)" = 1; then \
+ cd $(DISTDIR); \
+ mv samples wxSamples-${VER_SUFFIX}; \
+ echo "*** Creating wxSamples archive..."; \
+ tar ch wxSamples-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
+ mv wxSamples-${VER_SUFFIX} samples; \
+ mv demos wxDemos-${VER_SUFFIX}; \
+ echo "*** Creating wxDemos archive..."; \
+ tar ch wxDemos-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
+ mv wxDemos-${VER_SUFFIX} demos; \
+ fi
+
+bzip-dist: @GUIDIST@
+ cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
+ @echo "*** Creating wxWindows distribution in $(DISTDIR)..."
+ @cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
+ @if test "$(USE_GUI)" = 1; then \
+ cd $(DISTDIR); \
+ mv samples wxSamples; \
+ tar ch wxSamples | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
+ mv wxSamples samples; \
+ mv demos wxDemos; \
+ tar ch wxDemos | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
+ mv wxDemos demos; \
+ fi
+
+debian-dist: @GUIDIST@ MANUAL_DIST PYTHON_DIST
+ mkdir $(DISTDIR)/debian
+ -cp $(WXDIR)/debian/* $(DISTDIR)/debian
+ cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
+ cp $(DOCDIR)/licence.txt $(DISTDIR)/docs
+ cp $(DOCDIR)/licendoc.txt $(DISTDIR)/docs
+ cp $(DOCDIR)/preamble.txt $(DISTDIR)/docs
+ rm -f $(DISTDIR)/*.spec
+ rm -rf $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
+ mv $(DISTDIR) $(WXDIR)/../wxwindows$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
+