]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/make_dist.mk
fix for creation of shared libraries under AIX with gcc
[wxWidgets.git] / build / bakefiles / make_dist.mk
index 6b55a4193ef036c18f77a3a52031a7385ad353d4..b7165e674c7737ec2faa82582f4f0c552a26e4d0 100644 (file)
@@ -77,7 +77,7 @@ ALL_DIST: distrib_clean
        cp $(WXDIR)/install-sh $(DISTDIR)
        cp $(WXDIR)/mkinstalldirs $(DISTDIR)
        cp $(WXDIR)/wx-config.in $(DISTDIR)
-       cp $(WXDIR)/wx-config-wrapper.in $(DISTDIR)
+       cp $(WXDIR)/wx-config-inplace.in $(DISTDIR)
        cp $(WXDIR)/version-script.in $(DISTDIR)
        cp $(WXDIR)/setup.h.in $(DISTDIR)
        cp $(WXDIR)/setup.h_vms $(DISTDIR)
@@ -122,6 +122,16 @@ ALL_DIST: distrib_clean
        mkdir $(DISTDIR)/include
        mkdir $(DISTDIR)/include/wx
        cp $(INCDIR)/wx/fmappriv.h $(DISTDIR)/include/wx
+       # copy wxpresets
+       mkdir $(DISTDIR)/build
+       mkdir $(DISTDIR)/build/bakefiles
+       mkdir $(DISTDIR)/build/bakefiles/wxpresets
+       mkdir $(DISTDIR)/build/bakefiles/wxpresets/presets
+       mkdir $(DISTDIR)/build/bakefiles/wxpresets/sample
+       cp $(WXDIR)/build/bakefiles/wxpresets/presets/*.bkl $(DISTDIR)/build/bakefiles/wxpresets/presets
+       cp $(WXDIR)/build/bakefiles/wxpresets/sample/minimal* $(DISTDIR)/build/bakefiles/wxpresets/sample
+       cp $(WXDIR)/build/bakefiles/wxpresets/sample/config* $(DISTDIR)/build/bakefiles/wxpresets/sample
+       cp $(WXDIR)/build/bakefiles/wxpresets/*.txt $(DISTDIR)/build/bakefiles/wxpresets
 
 # this target is the common part of distribution script for all GUI toolkits,
 # but is not used when building wxBase distribution
@@ -139,13 +149,14 @@ ALL_GUI_DIST: ALL_DIST
        mkdir $(DISTDIR)/include/wx/protocol
        mkdir $(DISTDIR)/include/wx/unix
        mkdir $(DISTDIR)/include/wx/xml
+       mkdir $(DISTDIR)/include/wx/xrc
        cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
-       cp $(INCDIR)/wx/*.inl $(DISTDIR)/include/wx
        cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
        cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
        cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
        cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
        cp $(INCDIR)/wx/xml/*.h $(DISTDIR)/include/wx/xml
+       cp $(INCDIR)/wx/xrc/*.h $(DISTDIR)/include/wx/xrc
        cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
        mkdir $(DISTDIR)/art
        mkdir $(DISTDIR)/art/gtk
@@ -160,12 +171,12 @@ ALL_GUI_DIST: ALL_DIST
        mkdir $(DISTDIR)/src/jpeg
        mkdir $(DISTDIR)/src/tiff
        mkdir $(DISTDIR)/src/unix
+       mkdir $(DISTDIR)/src/xrc
+       cp $(SRCDIR)/xrc/*.cpp $(DISTDIR)/src/xrc
        cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
        cp $(COMMDIR)/*.c $(DISTDIR)/src/common
        cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
-       cp $(COMMDIR)/*.h $(DISTDIR)/src/common
        cp $(COMMDIR)/*.mms $(DISTDIR)/src/common
-       cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
        cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
        cp $(UNIXDIR)/*.mms $(DISTDIR)/src/unix
        cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
@@ -192,13 +203,13 @@ BASE_DIST: ALL_DIST
        mkdir $(DISTDIR)/include/wx/unix
        mkdir $(DISTDIR)/include/wx/xml
        mkdir $(DISTDIR)/include/wx/msw
+       mkdir $(DISTDIR)/include/wx/html
        mkdir $(DISTDIR)/src/unix
        mkdir $(DISTDIR)/src/msw
        cp $(DOCDIR)/changes.txt $(DISTDIR)/CHANGES.txt
        cp $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt
        cp $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common
        cp $(WXDIR)/src/common/base.rc $(DISTDIR)/src/common
-       cp $(WXDIR)/src/common/unzip.h $(DISTDIR)/src/common
        list='$(ALL_BASE_HEADERS)'; for p in $$list; do \
          cp $(WXDIR)/include/$$p $(DISTDIR)/include/$$p; \
        done
@@ -219,10 +230,24 @@ BASE_DIST: ALL_DIST
 GTK_DIST: ALL_GUI_DIST
        cp $(WXDIR)/wxGTK.spec $(DISTDIR)
        cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
+       cp $(GTKDIR)/*.h $(DISTDIR)/src/gtk
        cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
        cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
        cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
        cp $(GTKDIR)/*.mms $(DISTDIR)/src/gtk
+
+       mkdir $(DISTDIR)/include/wx/gtk/gnome
+       mkdir $(DISTDIR)/src/gtk/gnome
+       cp $(INCDIR)/wx/gtk/gnome/*.h $(DISTDIR)/include/wx/gtk/gnome
+       cp $(GTKDIR)/gnome/*.cpp $(DISTDIR)/src/gtk/gnome
+
+       mkdir $(DISTDIR)/src/mac
+       mkdir $(DISTDIR)/src/mac/corefoundation
+       cp $(WXDIR)/src/mac/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
+       mkdir $(DISTDIR)/include/wx/mac
+       mkdir $(DISTDIR)/include/wx/mac/corefoundation
+       cp $(WXDIR)/include/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
+
        mkdir $(DISTDIR)/contrib
        cp -R $(WXDIR)/contrib $(DISTDIR)
 
@@ -232,6 +257,12 @@ X11_DIST: ALL_GUI_DIST UNIV_DIST
        cp $(X11DIR)/*.cpp $(DISTDIR)/src/x11
        cp $(X11DIR)/*.c $(DISTDIR)/src/x11
        cp $(X11DIR)/*.xbm $(DISTDIR)/src/x11
+       mkdir $(DISTDIR)/src/mac
+       mkdir $(DISTDIR)/src/mac/corefoundation
+       cp $(WXDIR)/src/mac/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
+       mkdir $(DISTDIR)/include/wx/mac
+       mkdir $(DISTDIR)/include/wx/mac/corefoundation
+       cp $(WXDIR)/include/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
        mkdir $(DISTDIR)/contrib
        cp -R $(WXDIR)/contrib $(DISTDIR)
 
@@ -239,7 +270,6 @@ MOTIF_DIST: ALL_GUI_DIST
        cp $(WXDIR)/wxMotif.spec $(DISTDIR)
        cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
        cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
-       cp $(MOTIFDIR)/*.c $(DISTDIR)/src/motif
        cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
        mkdir $(DISTDIR)/src/motif/xmcombo
        cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
@@ -265,8 +295,18 @@ MACX_DIST: ALL_GUI_DIST
        cp $(INCDIR)/wx/mac/carbon/*.h $(DISTDIR)/include/wx/mac/carbon
        cp $(INCDIR)/wx/mac/carbon/private/*.h $(DISTDIR)/include/wx/mac/carbon/private
        cp $(INCDIR)/wx/mac/private/*.h $(DISTDIR)/include/wx/mac/private
+       mkdir $(DISTDIR)/include/wx/mac/corefoundation
+       cp $(INCDIR)/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation
+       mkdir $(DISTDIR)/src/mac/corefoundation
+       cp $(MACDIR)/corefoundation/*.cpp $(DISTDIR)/src/mac/corefoundation
+       mkdir $(DISTDIR)/src/html/htmlctrl
+       mkdir $(DISTDIR)/src/html/htmlctrl/webkit
+       cp $(WXDIR)/src/html/htmlctrl/webkit/*.mm $(DISTDIR)/src/html/htmlctrl/webkit
+       mkdir $(DISTDIR)/src/mac/carbon
        cp $(MACDIR)/carbon/*.cpp $(DISTDIR)/src/mac/carbon
-       cp $(MACDIR)/carbon/*.c $(DISTDIR)/src/mac/carbon
+       cp $(MACDIR)/carbon/*.mm $(DISTDIR)/src/mac/carbon
+       cp $(MACDIR)/carbon/*.icns $(DISTDIR)/src/mac/carbon
+       cp $(MACDIR)/carbon/Info.plist.in $(DISTDIR)/src/mac/carbon
        cp $(MACDIR)/carbon/*.h $(DISTDIR)/src/mac/carbon
        cp $(MACDIR)/carbon/*.r $(DISTDIR)/src/mac/carbon
        mkdir $(DISTDIR)/src/mac/carbon/morefile
@@ -288,9 +328,6 @@ COCOA_DIST: ALL_GUI_DIST
 
 MSW_DIST: ALL_GUI_DIST
        cp $(WXDIR)/wxWINE.spec $(DISTDIR)
-       mkdir $(DISTDIR)/include/wx/msw/ctl3d
-       mkdir $(DISTDIR)/include/wx/msw/gnuwin32
-       mkdir $(DISTDIR)/include/wx/msw/gnuwin32/gl
        mkdir $(DISTDIR)/include/wx/msw/ole
        mkdir $(DISTDIR)/include/wx/msw/wince
        cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
@@ -298,33 +335,24 @@ MSW_DIST: ALL_GUI_DIST
        cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
        cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
        cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
-       cp $(INCDIR)/wx/msw/ctl3d/*.h $(DISTDIR)/include/wx/msw/ctl3d
-       cp $(INCDIR)/wx/msw/gnuwin32/*.h $(DISTDIR)/include/wx/msw/gnuwin32
-       cp $(INCDIR)/wx/msw/gnuwin32/gl/*.h $(DISTDIR)/include/wx/msw/gnuwin32/gl
-       cp $(INCDIR)/wx/msw/gnuwin32/gl/*.def $(DISTDIR)/include/wx/msw/gnuwin32/gl
+       cp $(INCDIR)/wx/msw/wx.manifest $(DISTDIR)/include/wx/msw
        cp $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
        cp $(INCDIR)/wx/msw/wince/*.h $(DISTDIR)/include/wx/msw/wince
        mkdir $(DISTDIR)/src/msw/ole
        mkdir $(DISTDIR)/src/msw/wince
        cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
        cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
-       cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
+       cp $(MSWDIR)/*.rc $(DISTDIR)/src/msw
        cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
 
 MSW_ZIP_TEXT_DIST: ALL_GUI_DIST
        cp $(WXDIR)/wxWINE.spec $(DISTDIR)
        mkdir $(DISTDIR)/include/wx/msw
-       mkdir $(DISTDIR)/include/wx/msw/ctl3d
-       mkdir $(DISTDIR)/include/wx/msw/gnuwin32
-       mkdir $(DISTDIR)/include/wx/msw/gnuwin32/gl
        mkdir $(DISTDIR)/include/wx/msw/ole
        mkdir $(DISTDIR)/include/wx/msw/wince
        cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
        cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
-       cp $(INCDIR)/wx/msw/ctl3d/*.h $(DISTDIR)/include/wx/msw/ctl3d
-       cp $(INCDIR)/wx/msw/gnuwin32/*.h $(DISTDIR)/include/wx/msw/gnuwin32
-       cp $(INCDIR)/wx/msw/gnuwin32/gl/*.h $(DISTDIR)/include/wx/msw/gnuwin32/gl
-       cp $(INCDIR)/wx/msw/gnuwin32/gl/*.def $(DISTDIR)/include/wx/msw/gnuwin32/gl
+       cp $(INCDIR)/wx/msw/wx.manifest $(DISTDIR)/include/wx/msw
        cp $(INCDIR)/wx/msw/ole/*.h $(DISTDIR)/include/wx/msw/ole
        cp $(INCDIR)/wx/msw/wince/*.h $(DISTDIR)/include/wx/msw/wince
        mkdir $(DISTDIR)/src/msw
@@ -332,12 +360,10 @@ MSW_ZIP_TEXT_DIST: ALL_GUI_DIST
        mkdir $(DISTDIR)/src/msw/wince
        cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
        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
        cp $(SRCDIR)/*.??? $(DISTDIR)/src
        cp $(SRCDIR)/*.?? $(DISTDIR)/src
-       cp $(MSWDIR)/?ake*.* $(DISTDIR)/src/msw
        mkdir $(DISTDIR)/contrib
        cp -R $(WXDIR)/contrib $(DISTDIR)
 
@@ -379,6 +405,7 @@ DEMOS_DIST: ALL_GUI_DIST
        cp $(DEMODIR)/forty/*.cpp $(DISTDIR)/demos/forty
        cp $(DEMODIR)/forty/*.xpm $(DISTDIR)/demos/forty
        cp $(DEMODIR)/forty/*.xbm $(DISTDIR)/demos/forty
+       cp $(DEMODIR)/forty/*.htm $(DISTDIR)/demos/forty
 
        mkdir $(DISTDIR)/demos/life
        mkdir $(DISTDIR)/demos/life/bitmaps
@@ -452,6 +479,9 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/controls/makefile.unx $(DISTDIR)/samples/controls
        cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
        cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
+       cp $(SAMPDIR)/controls/*.bmp $(DISTDIR)/samples/controls
+       cp $(SAMPDIR)/controls/*.ico $(DISTDIR)/samples/controls
+       cp $(SAMPDIR)/controls/*.rc $(DISTDIR)/samples/controls
        cp $(SAMPDIR)/controls/*.mms $(DISTDIR)/samples/controls
        cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
 
@@ -478,7 +508,6 @@ SAMPLES_DIST: ALL_GUI_DIST
        mkdir $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/Makefile.in $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/makefile.unx $(DISTDIR)/samples/dnd
-       cp $(SAMPDIR)/dnd/*.wxr $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/*.cpp $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/*.xpm $(DISTDIR)/samples/dnd
        cp $(SAMPDIR)/dnd/*.txt $(DISTDIR)/samples/dnd
@@ -531,7 +560,6 @@ SAMPLES_DIST: ALL_GUI_DIST
 
        mkdir $(DISTDIR)/samples/except
        cp $(SAMPDIR)/except/Makefile.in $(DISTDIR)/samples/except
-       cp $(SAMPDIR)/except/makefile.unx $(DISTDIR)/samples/except
        cp $(SAMPDIR)/except/*.cpp $(DISTDIR)/samples/except
 
        mkdir $(DISTDIR)/samples/exec
@@ -611,28 +639,43 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/image/makefile.unx $(DISTDIR)/samples/image
        cp $(SAMPDIR)/image/*.cpp $(DISTDIR)/samples/image
        cp $(SAMPDIR)/image/*.mms $(DISTDIR)/samples/image
-       cp $(SAMPDIR)/image/horse.* $(DISTDIR)/samples/image
+       cp $(SAMPDIR)/image/horse*.* $(DISTDIR)/samples/image
        cp $(SAMPDIR)/image/smile.xbm $(DISTDIR)/samples/image
        cp $(SAMPDIR)/image/smile.xpm $(DISTDIR)/samples/image
 
        mkdir $(DISTDIR)/samples/internat
+       mkdir $(DISTDIR)/samples/internat/bg
+       mkdir $(DISTDIR)/samples/internat/cs
        mkdir $(DISTDIR)/samples/internat/de
        mkdir $(DISTDIR)/samples/internat/fr
-       mkdir $(DISTDIR)/samples/internat/ju
+       mkdir $(DISTDIR)/samples/internat/ja
+       mkdir $(DISTDIR)/samples/internat/ka
+       mkdir $(DISTDIR)/samples/internat/pl
        mkdir $(DISTDIR)/samples/internat/ru
+       mkdir $(DISTDIR)/samples/internat/sv
        cp $(SAMPDIR)/internat/Makefile.in $(DISTDIR)/samples/internat
        cp $(SAMPDIR)/internat/makefile.unx $(DISTDIR)/samples/internat
        cp $(SAMPDIR)/internat/*.cpp $(DISTDIR)/samples/internat
        cp $(SAMPDIR)/internat/*.xpm $(DISTDIR)/samples/internat
        cp $(SAMPDIR)/internat/*.txt $(DISTDIR)/samples/internat
-       cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
+       cp $(SAMPDIR)/internat/bg/*.mo $(DISTDIR)/samples/internat/bg
+       cp $(SAMPDIR)/internat/cs/*.mo $(DISTDIR)/samples/internat/cs
        cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
+       cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
        cp $(SAMPDIR)/internat/ja/*.mo $(DISTDIR)/samples/internat/ja
+       cp $(SAMPDIR)/internat/ka/*.mo $(DISTDIR)/samples/internat/ka
+       cp $(SAMPDIR)/internat/pl/*.mo $(DISTDIR)/samples/internat/pl
        cp $(SAMPDIR)/internat/ru/*.mo $(DISTDIR)/samples/internat/ru
-       cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
+       cp $(SAMPDIR)/internat/sv/*.mo $(DISTDIR)/samples/internat/sv
+       cp $(SAMPDIR)/internat/bg/*.po $(DISTDIR)/samples/internat/bg
+       cp $(SAMPDIR)/internat/cs/*.po $(DISTDIR)/samples/internat/cs
        cp $(SAMPDIR)/internat/de/*.po $(DISTDIR)/samples/internat/de
+       cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
        cp $(SAMPDIR)/internat/ja/*.po $(DISTDIR)/samples/internat/ja
+       cp $(SAMPDIR)/internat/ka/*.po $(DISTDIR)/samples/internat/ka
+       cp $(SAMPDIR)/internat/pl/*.po $(DISTDIR)/samples/internat/pl
        cp $(SAMPDIR)/internat/ru/*.po $(DISTDIR)/samples/internat/ru
+       cp $(SAMPDIR)/internat/sv/*.po $(DISTDIR)/samples/internat/sv
 
        mkdir $(DISTDIR)/samples/ipc
        cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
@@ -667,6 +710,10 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl
        cp $(SAMPDIR)/listctrl/bitmaps/*.xpm $(DISTDIR)/samples/listctrl/bitmaps
 
+       mkdir $(DISTDIR)/samples/mediaplayer
+       cp $(SAMPDIR)/mediaplayer/Makefile.in $(DISTDIR)/samples/mediaplayer
+       cp $(SAMPDIR)/mediaplayer/*.cpp $(DISTDIR)/samples/mediaplayer
+
        mkdir $(DISTDIR)/samples/mdi
        mkdir $(DISTDIR)/samples/mdi/bitmaps
        cp $(SAMPDIR)/mdi/Makefile.in $(DISTDIR)/samples/mdi
@@ -754,13 +801,17 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/png/*.h $(DISTDIR)/samples/png
        cp $(SAMPDIR)/png/*.png $(DISTDIR)/samples/png
 
+       mkdir $(DISTDIR)/samples/popup
+       cp $(SAMPDIR)/popup/Makefile.in $(DISTDIR)/samples/popup
+       cp $(SAMPDIR)/popup/makefile.unx $(DISTDIR)/samples/popup
+       cp $(SAMPDIR)/popup/*.cpp $(DISTDIR)/samples/popup
+
        mkdir $(DISTDIR)/samples/printing
        cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
        cp $(SAMPDIR)/printing/makefile.unx $(DISTDIR)/samples/printing
        cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
        cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
        cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
-       cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
 
 #      mkdir $(DISTDIR)/samples/resource
 #      cp $(SAMPDIR)/resource/Makefile.in $(DISTDIR)/samples/resource
@@ -778,7 +829,7 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/rotate/Makefile.in $(DISTDIR)/samples/rotate
        cp $(SAMPDIR)/rotate/makefile.unx $(DISTDIR)/samples/rotate
        cp $(SAMPDIR)/rotate/*.cpp $(DISTDIR)/samples/rotate
-       cp $(SAMPDIR)/rotate/*.bmp $(DISTDIR)/samples/rotate
+       cp $(SAMPDIR)/rotate/*.png $(DISTDIR)/samples/rotate
 
        mkdir $(DISTDIR)/samples/richedit
        cp $(SAMPDIR)/richedit/Makefile.in $(DISTDIR)/samples/richedit
@@ -834,6 +885,12 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/sound/*.cpp $(DISTDIR)/samples/sound
        cp $(SAMPDIR)/sound/*.wav $(DISTDIR)/samples/sound
 
+       mkdir $(DISTDIR)/samples/splash
+       cp $(SAMPDIR)/splash/Makefile.in $(DISTDIR)/samples/splash
+       cp $(SAMPDIR)/splash/*.cpp $(DISTDIR)/samples/splash
+       cp $(SAMPDIR)/splash/*.png $(DISTDIR)/samples/splash
+       cp $(SAMPDIR)/splash/*.mpg $(DISTDIR)/samples/splash
+
        mkdir $(DISTDIR)/samples/splitter
        cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
        cp $(SAMPDIR)/splitter/makefile.unx $(DISTDIR)/samples/splitter
@@ -891,6 +948,10 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/validate/*.h $(DISTDIR)/samples/validate
        cp $(SAMPDIR)/validate/*.xpm $(DISTDIR)/samples/validate
 
+       mkdir $(DISTDIR)/samples/vscroll
+       cp $(SAMPDIR)/vscroll/Makefile.in $(DISTDIR)/samples/vscroll
+       cp $(SAMPDIR)/vscroll/*.cpp $(DISTDIR)/samples/vscroll
+
        mkdir $(DISTDIR)/samples/wizard
        cp $(SAMPDIR)/wizard/Makefile.in $(DISTDIR)/samples/wizard
        cp $(SAMPDIR)/wizard/makefile.unx $(DISTDIR)/samples/wizard
@@ -905,6 +966,17 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/widgets/*.rc $(DISTDIR)/samples/widgets
        cp $(SAMPDIR)/widgets/icons/*.xpm $(DISTDIR)/samples/widgets/icons
 
+       mkdir $(DISTDIR)/samples/xrc
+       mkdir $(DISTDIR)/samples/xrc/rc
+       cp $(SAMPDIR)/xrc/Makefile.in $(DISTDIR)/samples/xrc
+       cp $(SAMPDIR)/xrc/*.cpp $(DISTDIR)/samples/xrc
+       cp $(SAMPDIR)/xrc/*.h $(DISTDIR)/samples/xrc
+       cp $(SAMPDIR)/xrc/*.rc $(DISTDIR)/samples/xrc
+       cp $(SAMPDIR)/xrc/rc/*.xpm $(DISTDIR)/samples/xrc/rc
+       cp $(SAMPDIR)/xrc/rc/*.xrc $(DISTDIR)/samples/xrc/rc
+       cp $(SAMPDIR)/xrc/rc/*.gif $(DISTDIR)/samples/xrc/rc
+       cp $(SAMPDIR)/xrc/rc/*.ico $(DISTDIR)/samples/xrc/rc
+
 UTILS_DIST: ALL_GUI_DIST
        mkdir $(DISTDIR)/utils
        cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
@@ -930,12 +1002,16 @@ UTILS_DIST: ALL_GUI_DIST
        cp $(UTILSDIR)/emulator/docs/*.jpg $(DISTDIR)/utils/emulator/docs
 
        mkdir $(DISTDIR)/utils/hhp2cached
-       cp $(UTILSDIR)/hhp2cached/*.* $(DISTDIR)/utils/hhp2cached
+       cp $(UTILSDIR)/hhp2cached/Makefile.in $(DISTDIR)/utils/hhp2cached
+       cp $(UTILSDIR)/hhp2cached/*.cpp $(DISTDIR)/utils/hhp2cached
+       cp $(UTILSDIR)/hhp2cached/*.rc $(DISTDIR)/utils/hhp2cached
 
        mkdir $(DISTDIR)/utils/HelpGen
        mkdir $(DISTDIR)/utils/HelpGen/src
        cp $(UTILSDIR)/HelpGen/Makefile.in $(DISTDIR)/utils/HelpGen
-       cp $(UTILSDIR)/HelpGen/src/*.* $(DISTDIR)/utils/HelpGen/src
+       cp $(UTILSDIR)/HelpGen/src/Makefile.in $(DISTDIR)/utils/HelpGen/src
+       cp $(UTILSDIR)/HelpGen/src/*.h $(DISTDIR)/utils/HelpGen/src
+       cp $(UTILSDIR)/HelpGen/src/*.cpp $(DISTDIR)/utils/HelpGen/src
 
        mkdir $(DISTDIR)/utils/helpview
        mkdir $(DISTDIR)/utils/helpview/src
@@ -947,18 +1023,23 @@ UTILS_DIST: ALL_GUI_DIST
        cp $(UTILSDIR)/helpview/src/test.zip $(DISTDIR)/utils/helpview/src
        cp $(UTILSDIR)/helpview/src/bitmaps/*.xpm $(DISTDIR)/utils/helpview/src/bitmaps
 
+       mkdir $(DISTDIR)/utils/wxrc
+       cp $(UTILSDIR)/wxrc/Makefile.in $(DISTDIR)/utils/wxrc
+       cp $(UTILSDIR)/wxrc/*.cpp $(DISTDIR)/utils/wxrc
+       cp $(UTILSDIR)/wxrc/*.rc $(DISTDIR)/utils/wxrc
+
 MISC_DIST: ALL_GUI_DIST
-       mkdir $(DISTDIR)/misc
-       mkdir $(DISTDIR)/misc/afm
-       cp $(MISCDIR)/afm/*.afm  $(DISTDIR)/misc/afm
-       mkdir $(DISTDIR)/misc/gs_afm
-       cp $(MISCDIR)/gs_afm/*.afm  $(DISTDIR)/misc/gs_afm
 
 INTL_DIST:
        mkdir $(DISTDIR)/locale
        cp $(INTLDIR)/Makefile $(DISTDIR)/locale
        cp $(INTLDIR)/*.po $(DISTDIR)/locale
        -cp $(INTLDIR)/*.mo $(DISTDIR)/locale
+       subdirs=`cd $(INTLDIR) && ls */*.po | sed 's|/.*||' | uniq`; \
+       for dir in "$$subdirs"; do                                   \
+           mkdir $(DISTDIR)/locale/$$dir;                           \
+           cp $(INTLDIR)/$$dir/*.[pm]o $(DISTDIR)/locale/$$dir;     \
+       done
 
 MANUAL_DIST:
        mkdir $(DISTDIR)/docs
@@ -1072,6 +1153,7 @@ win-dist: MSW_ZIP_TEXT_DIST
        @cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.ico
        @cd _dist_dir && zip -r ../$(WXARCHIVE_ZIP) wxMSW/include/wx/msw/*.bmp
 
+debian-dist: DEBIAN_SOURCE_DIR = $(WXDIR)/../wxwidgets@WX_RELEASE@@WX_FLAVOUR@-@WX_SUBVERSION@
 debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
        mkdir $(DISTDIR)/debian
        -cp $(WXDIR)/debian/* $(DISTDIR)/debian
@@ -1088,7 +1170,7 @@ debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
        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 "*.bkl" -o -name "*.pro"  \
                           -o -name "*.vpj" -o -name "*.sc"                      \
                           -o \( -name "makefile.*" -a ! -name "makefile.unx" \) \
                        \) -print0 | xargs -0 rm -rf
@@ -1100,16 +1182,8 @@ debian-dist: debian-native-dist debian-msw-dirs MSW_DIST
        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 $(DEBIAN_SOURCE_DIR)
+       mv $(DISTDIR) $(DEBIAN_SOURCE_DIR)
 
 
 debian-native-dist: @GUIDIST@ UNIV_DIST MANUAL_DIST PYTHON_DIST