]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/make_dist.mk
we need to output \r\n on MSW
[wxWidgets.git] / build / bakefiles / make_dist.mk
index 30e1922d5f566a45df556b9eccf7331817107283..6ae6bf880abf470af0ebb03cdb44433dadc8d75d 100644 (file)
@@ -1,6 +1,5 @@
 #
 # "make dist" target implementation:
-# $Id$
 #
 
 
@@ -20,6 +19,7 @@ JPEGDIR  = $(WXDIR)/src/jpeg
 TIFFDIR  = $(WXDIR)/src/tiff
 ZLIBDIR  = $(WXDIR)/src/zlib
 REGEXDIR = $(WXDIR)/src/regex
+EXPATDIR = $(WXDIR)/src/expat
 GTKDIR   = $(WXDIR)/src/gtk
 X11DIR   = $(WXDIR)/src/x11
 X11INC   = $(WXDIR)/include/wx/x11
@@ -67,6 +67,9 @@ DISTDIR=./_dist_dir/$(DISTDIRNAME)
 ALL_DIST: distrib_clean
        mkdir _dist_dir
        mkdir $(DISTDIR)
+       cp $(WXDIR)/configure.in $(DISTDIR)
+       cp $(WXDIR)/configure $(DISTDIR)
+       cp $(WXDIR)/autoconf_inc.m4 $(DISTDIR)
        cp $(WXDIR)/wxwin.m4 $(DISTDIR)
        cp $(WXDIR)/aclocal.m4 $(DISTDIR)
        cp $(WXDIR)/config.sub $(DISTDIR)
@@ -101,15 +104,19 @@ ALL_DIST: distrib_clean
        cp $(ZLIBDIR)/*.mms $(DISTDIR)/src/zlib
        mkdir $(DISTDIR)/src/regex
        cp $(REGEXDIR)/*.h $(DISTDIR)/src/regex
-       cp $(REGEXDIR)/*.ih $(DISTDIR)/src/regex
        cp $(REGEXDIR)/*.c $(DISTDIR)/src/regex
-       cp $(REGEXDIR)/Makefile $(DISTDIR)/src/regex
-       cp $(REGEXDIR)/makefile.* $(DISTDIR)/src/regex
        cp $(REGEXDIR)/COPYRIGHT $(DISTDIR)/src/regex
        cp $(REGEXDIR)/README $(DISTDIR)/src/regex
-       cp $(REGEXDIR)/WHATSNEW $(DISTDIR)/src/regex
-       cp $(REGEXDIR)/mkh $(DISTDIR)/src/regex
-       cp $(REGEXDIR)/tests $(DISTDIR)/src/regex
+       cp -Rf $(EXPATDIR) $(DISTDIR)/src
+       (cd $(DISTDIR)/src/expat ; rm -rf `find -name CVS`)
+       mkdir $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/*.exp $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/README $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/NEWS $(DISTDIR)/src/iodbc
+       cp $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
        # copy some files from include/ that are not installed:
        mkdir $(DISTDIR)/include
        mkdir $(DISTDIR)/include/wx
@@ -118,8 +125,6 @@ ALL_DIST: distrib_clean
 # this target is the common part of distribution script for all GUI toolkits,
 # but is not used when building wxBase distribution
 ALL_GUI_DIST: ALL_DIST
-       cp $(WXDIR)/configure.in $(DISTDIR)
-       cp $(WXDIR)/configure $(DISTDIR)
        cp $(DOCDIR)/readme.txt $(DISTDIR)/README.txt
        cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
        if test -f $(DOCDIR)/$(TOOLKITDIR)/changes.txt ; then \
@@ -174,14 +179,6 @@ ALL_GUI_DIST: ALL_DIST
        cp $(TIFFDIR)/*.h $(DISTDIR)/src/tiff
        cp $(TIFFDIR)/*.c $(DISTDIR)/src/tiff
        cp $(TIFFDIR)/README $(DISTDIR)/src/tiff
-       mkdir $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/*.exp $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/README $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/NEWS $(DISTDIR)/src/iodbc
-       cp $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
 
 BASE_DIST: ALL_DIST
        # make --disable-gui the default
@@ -250,11 +247,13 @@ MOTIF_DIST: ALL_GUI_DIST
        mkdir $(DISTDIR)/src/x11
        mkdir $(DISTDIR)/include/wx/x11
        cp $(X11DIR)/pen.cpp $(X11DIR)/brush.cpp $(X11DIR)/utilsx.cpp \
-               $(X11DIR)/bitmap.cpp $(X11DIR)/region.cpp \
+               $(X11DIR)/bitmap.cpp $(X11DIR)/glcanvas.cpp $(X11DIR)/region.cpp \
                $(DISTDIR)/src/x11
        cp $(X11INC)/pen.h $(X11INC)/brush.h $(X11INC)/privx.h \
-               $(X11INC)/bitmap.h $(X11INC)/private.h $(X11INC)/region.h \
+               $(X11INC)/bitmap.h $(X11INC)/glcanvas.h $(X11INC)/private.h $(X11INC)/region.h \
                $(DISTDIR)/include/wx/x11
+       mkdir $(DISTDIR)/contrib
+       cp -R $(WXDIR)/contrib $(DISTDIR)
 
 MACX_DIST: ALL_GUI_DIST
        cp $(INCDIR)/*.* $(DISTDIR)/include
@@ -268,6 +267,8 @@ MACX_DIST: ALL_GUI_DIST
        cp $(MACDIR)/morefile/*.c $(DISTDIR)/src/mac/morefile
        mkdir $(DISTDIR)/src/mac/macsock
        cp $(MACDIR)/macsock/*.lib $(DISTDIR)/src/mac/macsock
+       mkdir $(DISTDIR)/contrib
+       cp -R $(WXDIR)/contrib $(DISTDIR)
 
 # TODO: Distribute some files
 COCOA_DIST: ALL_GUI_DIST
@@ -297,9 +298,6 @@ MSW_DIST: ALL_GUI_DIST
        cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
        cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
        cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
-       cp $(MSWDIR)/wince/*.* $(DISTDIR)/src/msw/wince
-       mkdir $(DISTDIR)/contrib
-       cp -R $(WXDIR)/contrib $(DISTDIR)
 
 MSW_ZIP_TEXT_DIST: ALL_GUI_DIST
        cp $(WXDIR)/wxWINE.spec $(DISTDIR)
@@ -460,6 +458,11 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/dialogs/*.txt $(DISTDIR)/samples/dialogs
        cp $(SAMPDIR)/dialogs/*.mms $(DISTDIR)/samples/dialogs
 
+       mkdir $(DISTDIR)/samples/dialup
+       cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
+       cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
+       cp $(SAMPDIR)/dialup/*.cpp $(DISTDIR)/samples/dialup
+
        mkdir $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/Makefile.in $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/makefile.unx $(DISTDIR)/samples/dnd
@@ -537,6 +540,12 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/help/*.xpm $(DISTDIR)/samples/help
        cp $(SAMPDIR)/help/doc/*.* $(DISTDIR)/samples/help/doc
 
+       mkdir $(DISTDIR)/samples/htlbox
+       cp $(SAMPDIR)/htlbox/Makefile.in $(DISTDIR)/samples/htlbox
+       cp $(SAMPDIR)/htlbox/makefile.unx $(DISTDIR)/samples/htlbox
+       cp $(SAMPDIR)/htlbox/*.cpp $(DISTDIR)/samples/htlbox
+       cp $(SAMPDIR)/htlbox/*.xpm $(DISTDIR)/samples/htlbox
+
        mkdir $(DISTDIR)/samples/html
        cp $(SAMPDIR)/html/Makefile.in $(DISTDIR)/samples/html
        mkdir $(DISTDIR)/samples/html/about
@@ -675,7 +684,6 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
        cp $(SAMPDIR)/minimal/makefile.unx $(DISTDIR)/samples/minimal
        cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
-       cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
        cp $(SAMPDIR)/minimal/*.mms $(DISTDIR)/samples/minimal
 
        mkdir $(DISTDIR)/samples/mobile
@@ -690,10 +698,10 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/mobile/styles/*.h $(DISTDIR)/samples/mobile/styles
        cp $(SAMPDIR)/mobile/styles/*.jpg $(DISTDIR)/samples/mobile/styles
     
-       mkdir $(DISTDIR)/samples/dialup
-       cp $(SAMPDIR)/dialup/Makefile.in $(DISTDIR)/samples/dialup
-       cp $(SAMPDIR)/dialup/makefile.unx $(DISTDIR)/samples/dialup
-       cp $(SAMPDIR)/dialup/*.cpp $(DISTDIR)/samples/dialup
+       mkdir $(DISTDIR)/samples/multimon
+       cp $(SAMPDIR)/multimon/Makefile.in $(DISTDIR)/samples/multimon
+       cp $(SAMPDIR)/multimon/makefile.unx $(DISTDIR)/samples/multimon
+       cp $(SAMPDIR)/multimon/*.cpp $(DISTDIR)/samples/multimon
 
        mkdir $(DISTDIR)/samples/notebook
        cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
@@ -744,6 +752,11 @@ SAMPLES_DIST: ALL_GUI_DIST
 #      cp $(SAMPDIR)/resource/*.h $(DISTDIR)/samples/resource
 #      cp $(SAMPDIR)/resource/*.wxr $(DISTDIR)/samples/resource
 
+       mkdir $(DISTDIR)/samples/render
+       cp $(SAMPDIR)/render/Makefile.in $(DISTDIR)/samples/render
+       cp $(SAMPDIR)/render/makefile.unx $(DISTDIR)/samples/render
+       cp $(SAMPDIR)/render/*.cpp $(DISTDIR)/samples/render
+
        mkdir $(DISTDIR)/samples/rotate
        cp $(SAMPDIR)/rotate/Makefile.in $(DISTDIR)/samples/rotate
        cp $(SAMPDIR)/rotate/makefile.unx $(DISTDIR)/samples/rotate
@@ -799,6 +812,11 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/sockets/*.cpp $(DISTDIR)/samples/sockets
        cp $(SAMPDIR)/sockets/*.xpm $(DISTDIR)/samples/sockets
 
+       mkdir $(DISTDIR)/samples/sound
+       cp $(SAMPDIR)/sound/Makefile.in $(DISTDIR)/samples/sound
+       cp $(SAMPDIR)/sound/*.cpp $(DISTDIR)/samples/sound
+       cp $(SAMPDIR)/sound/*.wav $(DISTDIR)/samples/sound
+
        mkdir $(DISTDIR)/samples/splitter
        cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
        cp $(SAMPDIR)/splitter/makefile.unx $(DISTDIR)/samples/splitter
@@ -894,12 +912,6 @@ UTILS_DIST: ALL_GUI_DIST
        cp $(UTILSDIR)/emulator/docs/*.txt $(DISTDIR)/utils/emulator/docs
        cp $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
 
-       mkdir $(DISTDIR)/utils/makegen
-       mkdir $(DISTDIR)/utils/makegen/templates
-       cp $(UTILSDIR)/makegen/Makefile.in $(DISTDIR)/utils/makegen
-       cp $(UTILSDIR)/makegen/*.cpp $(DISTDIR)/utils/makegen
-       cp $(UTILSDIR)/makegen/templates/*.* $(DISTDIR)/utils/makegen/templates
-
        mkdir $(DISTDIR)/utils/hhp2cached
        cp $(UTILSDIR)/hhp2cached/*.* $(DISTDIR)/utils/hhp2cached
 
@@ -908,20 +920,6 @@ UTILS_DIST: ALL_GUI_DIST
        cp $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
        cp $(UTILSDIR)/HelpGen/src/*.* $(DISTDIR)/utils/HelpGen/src
 
-       mkdir $(DISTDIR)/utils/dialoged
-       mkdir $(DISTDIR)/utils/dialoged/src
-       mkdir $(DISTDIR)/utils/dialoged/src/bitmaps
-       mkdir $(DISTDIR)/utils/dialoged/docs
-       cp $(UTILSDIR)/dialoged/Makefile.in $(DISTDIR)/utils/dialoged
-       cp $(UTILSDIR)/dialoged/src/*.h $(DISTDIR)/utils/dialoged/src
-       cp $(UTILSDIR)/dialoged/src/*.cpp $(DISTDIR)/utils/dialoged/src
-       cp $(UTILSDIR)/dialoged/src/Makefile.in $(DISTDIR)/utils/dialoged/src
-       cp $(UTILSDIR)/dialoged/src/makefile.unx $(DISTDIR)/utils/dialoged/src
-       cp $(UTILSDIR)/dialoged/src/bitmaps/*.xpm $(DISTDIR)/utils/dialoged/src/bitmaps
-       cp $(UTILSDIR)/dialoged/docs/*.tex $(DISTDIR)/utils/dialoged/docs
-       cp $(UTILSDIR)/dialoged/docs/*.ini $(DISTDIR)/utils/dialoged/docs
-       cp $(UTILSDIR)/dialoged/docs/*.gif $(DISTDIR)/utils/dialoged/docs
-
        mkdir $(DISTDIR)/utils/helpview
        mkdir $(DISTDIR)/utils/helpview/src
        mkdir $(DISTDIR)/utils/helpview/src/bitmaps
@@ -956,64 +954,26 @@ MANUAL_DIST:
        cp $(DOCDIR)/latex/wx/*.bib $(DISTDIR)/docs/latex/wx
        cp $(DOCDIR)/latex/wx/*.sty $(DISTDIR)/docs/latex/wx
 
-# this target does not generate a complete wxPython dist, it only includes
-# those files needed for the Debian source package.
-# see utils/wxPython/distrib for scripts to make a proper wxPython dist.
+
+# Copy all the files from wxPython needed for the Debian source package, 
+# and then remove some that are not needed.
 PYTHON_DIST:
-       mkdir $(DISTDIR)/wxPython
-       mkdir $(DISTDIR)/wxPython/contrib
-       mkdir $(DISTDIR)/wxPython/contrib/dllwidget
-       mkdir $(DISTDIR)/wxPython/contrib/gizmos
-       mkdir $(DISTDIR)/wxPython/contrib/glcanvas
-       mkdir $(DISTDIR)/wxPython/contrib/glcanvas/gtk
-       mkdir $(DISTDIR)/wxPython/contrib/ogl
-       mkdir $(DISTDIR)/wxPython/contrib/stc
-       mkdir $(DISTDIR)/wxPython/contrib/stc/gtk
-       mkdir $(DISTDIR)/wxPython/contrib/xrc
-       mkdir $(DISTDIR)/wxPython/demo
-       mkdir $(DISTDIR)/wxPython/demo/bitmaps
-       mkdir $(DISTDIR)/wxPython/demo/bmp_source
-       mkdir $(DISTDIR)/wxPython/demo/data
-       mkdir $(DISTDIR)/wxPython/demo/dllwidget
-       mkdir $(DISTDIR)/wxPython/src
-       mkdir $(DISTDIR)/wxPython/src/gtk
-       mkdir $(DISTDIR)/wxPython/scripts
-       mkdir $(DISTDIR)/wxPython/wxPython
-       mkdir $(DISTDIR)/wxPython/wxPython/lib
-       mkdir $(DISTDIR)/wxPython/wxPython/lib/PyCrust
-       mkdir $(DISTDIR)/wxPython/wxPython/lib/editor
-       mkdir $(DISTDIR)/wxPython/wxPython/lib/mixins
-       mkdir $(DISTDIR)/wxPython/wxPython/tools
-       mkdir $(DISTDIR)/wxPython/wxPython/tools/XRCed
-
-       cp $(WXDIR)/wxPython/*.txt $(DISTDIR)/wxPython
-       cp $(WXDIR)/wxPython/*.py $(DISTDIR)/wxPython
-       cp $(WXDIR)/wxPython/setup.cfg $(DISTDIR)/wxPython
-       cp $(WXDIR)/wxPython/MANIFEST.in $(DISTDIR)/wxPython
-       cp $(WXDIR)/wxPython/contrib/dllwidget/*.{py,cpp,h,i} $(DISTDIR)/wxPython/contrib/dllwidget
-       cp $(WXDIR)/wxPython/contrib/gizmos/*.{py,cpp,i} $(DISTDIR)/wxPython/contrib/gizmos
-       -cp $(WXDIR)/wxPython/contrib/glcanvas/* $(DISTDIR)/wxPython/contrib/glcanvas
-       cp $(WXDIR)/wxPython/contrib/glcanvas/gtk/glcanvas.* $(DISTDIR)/wxPython/contrib/glcanvas/gtk
-       -cp $(WXDIR)/wxPython/contrib/ogl/* $(DISTDIR)/wxPython/contrib/ogl
-       -cp $(WXDIR)/wxPython/contrib/stc/* $(DISTDIR)/wxPython/contrib/stc
-       -cp $(WXDIR)/wxPython/contrib/stc/gtk/* $(DISTDIR)/wxPython/contrib/stc/gtk
-       -cp $(WXDIR)/wxPython/contrib/xrc/xrc.* $(DISTDIR)/wxPython/contrib/xrc
-       -cp $(WXDIR)/wxPython/demo/* $(DISTDIR)/wxPython/demo
-       -cp $(WXDIR)/wxPython/demo/bitmaps/* $(DISTDIR)/wxPython/demo/bitmaps
-       -cp $(WXDIR)/wxPython/demo/bmp_source/* $(DISTDIR)/wxPython/demo/bmp_source
-       -cp $(WXDIR)/wxPython/demo/data/* $(DISTDIR)/wxPython/demo/data
-       -cp $(WXDIR)/wxPython/demo/dllwidget/Makefile $(DISTDIR)/wxPython/demo/dllwidget
-       -cp $(WXDIR)/wxPython/demo/dllwidget/test_* $(DISTDIR)/wxPython/demo/dllwidget
-       -cp $(WXDIR)/wxPython/scripts/* $(DISTDIR)/wxPython/scripts
-       -cp $(WXDIR)/wxPython/src/* $(DISTDIR)/wxPython/src
-       cp $(WXDIR)/wxPython/src/gtk/*.py $(DISTDIR)/wxPython/src/gtk
-       cp $(WXDIR)/wxPython/src/gtk/*.cpp $(DISTDIR)/wxPython/src/gtk
-       cp $(WXDIR)/wxPython/wxPython/lib/*.py $(DISTDIR)/wxPython/wxPython/lib
-       cp $(WXDIR)/wxPython/wxPython/lib/PyCrust/*.py $(DISTDIR)/wxPython/wxPython/lib/PyCrust
-       cp $(WXDIR)/wxPython/wxPython/lib/editor/*.py $(DISTDIR)/wxPython/wxPython/lib/editor
-       cp $(WXDIR)/wxPython/wxPython/lib/mixins/*.py $(DISTDIR)/wxPython/wxPython/lib/mixins
-       cp $(WXDIR)/wxPython/wxPython/tools/*.py $(DISTDIR)/wxPython/wxPython/tools
-       cp $(WXDIR)/wxPython/wxPython/tools/XRCed/*.{py,ico,sh,xrc} $(DISTDIR)/wxPython/wxPython/tools/XRCed
+       for dir in `grep -v '#' $(WXDIR)/wxPython/distrib/DIRLIST`; do \
+               echo "Copying dir: $$dir..."; \
+               mkdir $(DISTDIR)/$$dir; \
+               cp $(WXDIR)/$$dir/* $(DISTDIR)/$$dir > /dev/null 2>&1; \
+       done; \
+       \
+       find $(DISTDIR)/wxPython -name "*~"           > RM_FILES; \
+       find $(DISTDIR)/wxPython -name "*.pyc"       >> RM_FILES; \
+       find $(DISTDIR)/wxPython -name "*.bat"       >> RM_FILES; \
+       find $(DISTDIR)/wxPython -name "core"        >> RM_FILES; \
+       find $(DISTDIR)/wxPython -name "core.[0-9]*" >> RM_FILES; \
+       find $(DISTDIR)/wxPython -name "*.orig"      >> RM_FILES; \
+       find $(DISTDIR)/wxPython -name "*.rej"       >> RM_FILES; \
+       for f in `cat RM_FILES`; do rm $$f; done; \
+       rm RM_FILES
+
 
 distrib_clean:
        $(RM) -r _dist_dir
@@ -1107,12 +1067,33 @@ debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
        @# in other dist targets.  Ugly and hardly portable but it
        @# will run on any Debian box and that's enough for now.
 
-       find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \
-                       \( -name "makefile.*" -a ! -name "makefile.unx" \) \) \
-                       -print0 | xargs -0 rm -rf
+       rm -rf $(DISTDIR)/contrib/build
+       find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp"    \
+                          -o -name "*.dsw" -o -name "*.hh*" -o -name "*.mms"    \
+                          -o -name "*.mcp" -o -name "*M*.xml" -o -name "*.r"    \
+                          -o -name "*.bkl" -o -name "*.pro" -o -name "*.def"    \
+                          -o -name "*.vpj" -o -name "*.sc"                      \
+                          -o \( -name "makefile.*" -a ! -name "makefile.unx" \) \
+                       \) -print0 | xargs -0 rm -rf
+
+       rm -rf $(DISTDIR)/wxPython/SWIG
+       rm -rf $(DISTDIR)/wxPython/distrib
+       rm -rf $(DISTDIR)/wxPython/distutils
+       rm -rf $(DISTDIR)/wxPython/samples
+       rm -rf $(DISTDIR)/wxPython/contrib/iewin
+       find $(DISTDIR)/wxPython \( -name "mac" -o -name "msw" \) -print0 | xargs -0 rm -rf
+
+
+       @# We can't get at the individual components of the version here
+       @# anymore, so strip the major and minor version out of the blob.
+
+       (                                                               \
+       wx_version=$(WX_VERSION);                                       \
+       wx_release=$${wx_version%.*};                                   \
+       rm -rf $(WXDIR)/../wxwidgets$${wx_release}-$${wx_version};      \
+       mv $(DISTDIR) $(WXDIR)/../wxwidgets$${wx_release}-$${wx_version};\
+       )
 
-       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)
 
 debian-native-dist: @GUIDIST@ UNIV_DIST MANUAL_DIST PYTHON_DIST