X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065bb76dbabfced18c324d37557f1a9b264ae796..928e79b665fc9ad569655ced3168195b39bd04b6:/build/bakefiles/make_dist.mk diff --git a/build/bakefiles/make_dist.mk b/build/bakefiles/make_dist.mk index 9ebe34dfcc..1ecaa60fcb 100644 --- a/build/bakefiles/make_dist.mk +++ b/build/bakefiles/make_dist.mk @@ -15,6 +15,7 @@ COMMDIR = $(WXDIR)/src/common HTMLDIR = $(WXDIR)/src/html RICHTEXTDIR = $(WXDIR)/src/richtext AUIDIR = $(WXDIR)/src/aui +STCDIR = $(WXDIR)/src/stc UNIXDIR = $(WXDIR)/src/unix PNGDIR = $(WXDIR)/src/png JPEGDIR = $(WXDIR)/src/jpeg @@ -33,7 +34,6 @@ MSWDIR = $(WXDIR)/src/msw PMDIR = $(WXDIR)/src/os2 MACDIR = $(WXDIR)/src/mac COCOADIR = $(WXDIR)/src/cocoa -ODBCDIR = $(WXDIR)/src/iodbc FTDIR = $(WXDIR)/src/freetype INCDIR = $(WXDIR)/include SAMPDIR = $(WXDIR)/samples @@ -62,6 +62,7 @@ WXDEMOS_BZIP=wx$(TOOLKIT)-demos-$(WX_VERSION).tar.bz2 DISTDIRNAME=@DISTDIR@-$(WX_VERSION) DISTDIR=./_dist_dir/$(DISTDIRNAME) +BASEDISTDIR=./_dist_dir/wxBase-$(WX_VERSION) ########################## Tools ############################### @@ -119,18 +120,12 @@ ALL_DIST: distrib_clean $(CP_P) $(REGEXDIR)/README $(DISTDIR)/src/regex $(CP_PR) $(EXPATDIR) $(DISTDIR)/src/expat #(cd $(DISTDIR)/src/expat ; rm -rf `find -name CVS`) - mkdir $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/*.exp $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/README $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/NEWS $(DISTDIR)/src/iodbc - $(CP_P) $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc # copy some files from include/ that are not installed: mkdir $(DISTDIR)/include mkdir $(DISTDIR)/include/wx + mkdir $(DISTDIR)/include/wx/private $(CP_P) $(INCDIR)/wx/fmappriv.h $(DISTDIR)/include/wx + $(CP_P) $(INCDIR)/wx/private/*.h $(DISTDIR)/include/wx/private # copy wxpresets mkdir $(DISTDIR)/build mkdir $(DISTDIR)/build/bakefiles @@ -155,10 +150,15 @@ ALL_GUI_DIST: ALL_DIST if test -f $(DOCDIR)/$(TOOLKITDIR)/todo.txt ; then \ $(CP_P) $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt ; fi mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR) + if test -d $(INCDIR)/wx/$(TOOLKITDIR)/private; then \ + mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)/private && \ + $(CP_P) $(INCDIR)/wx/$(TOOLKITDIR)/private/*.h $(DISTDIR)/include/wx/$(TOOLKITDIR)/private; \ + fi mkdir $(DISTDIR)/include/wx/generic mkdir $(DISTDIR)/include/wx/html mkdir $(DISTDIR)/include/wx/richtext mkdir $(DISTDIR)/include/wx/aui + mkdir $(DISTDIR)/include/wx/stc mkdir $(DISTDIR)/include/wx/protocol mkdir $(DISTDIR)/include/wx/unix mkdir $(DISTDIR)/include/wx/xml @@ -169,6 +169,7 @@ ALL_GUI_DIST: ALL_DIST $(CP_P) $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html $(CP_P) $(INCDIR)/wx/richtext/*.h $(DISTDIR)/include/wx/richtext $(CP_P) $(INCDIR)/wx/aui/*.h $(DISTDIR)/include/wx/aui + $(CP_P) $(INCDIR)/wx/stc/*.h $(DISTDIR)/include/wx/stc $(CP_P) $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix $(CP_P) $(INCDIR)/wx/xml/*.h $(DISTDIR)/include/wx/xml $(CP_P) $(INCDIR)/wx/xrc/*.h $(DISTDIR)/include/wx/xrc @@ -183,6 +184,7 @@ ALL_GUI_DIST: ALL_DIST mkdir $(DISTDIR)/src/html mkdir $(DISTDIR)/src/richtext mkdir $(DISTDIR)/src/aui + mkdir $(DISTDIR)/src/stc mkdir $(DISTDIR)/src/$(TOOLKITDIR) mkdir $(DISTDIR)/src/png mkdir $(DISTDIR)/src/jpeg @@ -201,6 +203,7 @@ ALL_GUI_DIST: ALL_DIST $(CP_P) $(HTMLDIR)/*.cpp $(DISTDIR)/src/html $(CP_P) $(RICHTEXTDIR)/*.cpp $(DISTDIR)/src/richtext $(CP_P) $(AUIDIR)/*.cpp $(DISTDIR)/src/aui + $(CP_P) $(STCDIR)/*.cpp $(DISTDIR)/src/stc $(CP_P) $(PNGDIR)/*.h $(DISTDIR)/src/png $(CP_P) $(PNGDIR)/*.c $(DISTDIR)/src/png $(CP_P) $(PNGDIR)/README $(DISTDIR)/src/png @@ -211,7 +214,7 @@ ALL_GUI_DIST: ALL_DIST $(CP_P) $(TIFFDIR)/*.c $(DISTDIR)/src/tiff $(CP_P) $(TIFFDIR)/README $(DISTDIR)/src/tiff -BASE_DIST: ALL_DIST +BASE_DIST: ALL_DIST INTL_DIST # make --disable-gui the default rm $(DISTDIR)/configure.in sed 's/DEFAULT_wxUSE_GUI=yes/DEFAULT_wxUSE_GUI=no/' \ @@ -228,6 +231,7 @@ BASE_DIST: ALL_DIST mkdir $(DISTDIR)/include/wx/html mkdir $(DISTDIR)/include/wx/richtext mkdir $(DISTDIR)/include/wx/aui + mkdir $(DISTDIR)/include/wx/stc mkdir $(DISTDIR)/include/wx/mac mkdir $(DISTDIR)/include/wx/mac/carbon mkdir $(DISTDIR)/include/wx/mac/corefoundation @@ -244,7 +248,6 @@ BASE_DIST: ALL_DIST mkdir $(DISTDIR)/src/palmos $(CP_P) $(DOCDIR)/base/readme.txt $(DISTDIR)/README.txt $(CP_P) $(WXDIR)/src/common/*.inc $(DISTDIR)/src/common - $(CP_P) $(WXDIR)/src/common/base.rc $(DISTDIR)/src/common list='$(ALL_PORTS_BASE_HEADERS)'; for p in $$list; do \ $(CP_P) $(WXDIR)/include/$$p $(DISTDIR)/include/$$p; \ done @@ -281,6 +284,8 @@ BASE_DIST: ALL_DIST $(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.rc $(DISTDIR)/utils/tex2rtf/src $(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.xpm $(DISTDIR)/utils/tex2rtf/src + mv $(DISTDIR) $(BASEDISTDIR) + GTK_DIST: UNIV_DIST $(CP_P) $(WXDIR)/wxGTK.spec $(DISTDIR) $(CP_P) $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk @@ -310,11 +315,11 @@ GTK_DIST: UNIV_DIST mkdir $(DISTDIR)/include/wx/mac/corefoundation $(CP_P) $(WXDIR)/include/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib - X11_DIST: UNIV_DIST $(CP_P) $(WXDIR)/wxX11.spec $(DISTDIR) $(CP_P) $(INCDIR)/wx/x11/*.h $(DISTDIR)/include/wx/x11 + mkdir $(DISTDIR)/include/wx/gtk/private + $(CP_P) $(INCDIR)/wx/gtk/private/string.h $(DISTDIR)/include/wx/gtk/private $(CP_P) $(X11DIR)/*.cpp $(DISTDIR)/src/x11 $(CP_P) $(X11DIR)/*.c $(DISTDIR)/src/x11 $(CP_P) $(X11DIR)/*.xbm $(DISTDIR)/src/x11 @@ -324,7 +329,6 @@ X11_DIST: UNIV_DIST mkdir $(DISTDIR)/include/wx/mac mkdir $(DISTDIR)/include/wx/mac/corefoundation $(CP_P) $(WXDIR)/include/wx/mac/corefoundation/*.h $(DISTDIR)/include/wx/mac/corefoundation - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib MOTIF_DIST: ALL_GUI_DIST $(CP_P) $(WXDIR)/wxMotif.spec $(DISTDIR) @@ -343,7 +347,6 @@ MOTIF_DIST: ALL_GUI_DIST $(CP_P) $(X11INC)/pen.h $(X11INC)/brush.h $(X11INC)/privx.h \ $(X11INC)/bitmap.h $(X11INC)/glcanvas.h $(X11INC)/private.h $(X11INC)/region.h \ $(DISTDIR)/include/wx/x11 - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib MACX_DIST: ALL_GUI_DIST $(CP_P) $(INCDIR)/*.* $(DISTDIR)/include @@ -375,7 +378,6 @@ MACX_DIST: ALL_GUI_DIST $(CP_P) $(MACDIR)/carbon/morefilex/*.h $(DISTDIR)/src/mac/carbon/morefilex $(CP_P) $(MACDIR)/carbon/morefilex/*.c $(DISTDIR)/src/mac/carbon/morefilex $(CP_P) $(MACDIR)/carbon/morefilex/*.cpp $(DISTDIR)/src/mac/carbon/morefilex - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib COCOA_DIST: ALL_GUI_DIST $(CP_P) $(INCDIR)/wx/cocoa/*.h $(DISTDIR)/include/wx/cocoa @@ -389,10 +391,8 @@ COCOA_DIST: ALL_GUI_DIST mkdir $(DISTDIR)/src/mac/carbon $(CP_P) $(MACDIR)/carbon/Info.plist.in $(DISTDIR)/src/mac/carbon $(CP_P) $(MACDIR)/carbon/wxmac.icns $(DISTDIR)/src/mac/carbon - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib MSW_DIST: UNIV_DIST - $(CP_P) $(WXDIR)/wxWINE.spec $(DISTDIR) mkdir $(DISTDIR)/include/wx/msw/ole mkdir $(DISTDIR)/include/wx/msw/wince $(CP_P) $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw @@ -409,10 +409,8 @@ MSW_DIST: UNIV_DIST $(CP_P) $(MSWDIR)/*.c $(DISTDIR)/src/msw $(CP_P) $(MSWDIR)/*.rc $(DISTDIR)/src/msw $(CP_P) $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib MSW_ZIP_TEXT_DIST: ALL_GUI_DIST - $(CP_P) $(WXDIR)/wxWINE.spec $(DISTDIR) mkdir $(DISTDIR)/include/wx/msw mkdir $(DISTDIR)/include/wx/msw/ole mkdir $(DISTDIR)/include/wx/msw/wince @@ -430,7 +428,6 @@ MSW_ZIP_TEXT_DIST: ALL_GUI_DIST $(CP_P) $(MSWDIR)/wince/*.* $(DISTDIR)/src/msw/wince $(CP_P) $(SRCDIR)/*.??? $(DISTDIR)/src $(CP_P) $(SRCDIR)/*.?? $(DISTDIR)/src - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib UNIV_DIST: ALL_GUI_DIST mkdir $(DISTDIR)/include/wx/univ @@ -450,7 +447,6 @@ MGL_DIST: UNIV_DIST $(CP_P) $(SRCDIR)/mgl/*.cpp $(DISTDIR)/src/mgl mkdir $(DISTDIR)/src/msdos $(CP_P) $(SRCDIR)/msdos/*.cpp $(DISTDIR)/src/msdos - $(CP_PR) $(WXDIR)/contrib $(DISTDIR)/contrib DEMOS_DIST: ALL_GUI_DIST mkdir $(DISTDIR)/demos @@ -466,8 +462,6 @@ DEMOS_DIST: ALL_GUI_DIST $(CP_P) $(DEMODIR)/bombs/*.rc $(DISTDIR)/demos/bombs $(CP_P) $(DEMODIR)/bombs/readme.txt $(DISTDIR)/demos/bombs - $(CP_PR) $(DEMODIR)/dbbrowse $(DISTDIR)/demos/dbbrowse - mkdir $(DISTDIR)/demos/forty $(CP_P) $(DEMODIR)/forty/Makefile.in $(DISTDIR)/demos/forty $(CP_P) $(DEMODIR)/forty/makefile.unx $(DISTDIR)/demos/forty @@ -522,7 +516,7 @@ SAMPLES_DIST: ALL_GUI_DIST t="$(DISTDIR)/samples/`echo $$s | sed 's@$(SAMPDIR)/@@'`"; \ mkdir -p $$t; \ $(CP_P) $$s/Makefile.in \ - `find $$s -name 'makefile.*' -o -name descrip.mms -o \ + `find $$s -maxdepth 1 -name 'makefile.*' -o -name descrip.mms -o \ -name '*.cpp' -o -name '*.h' -o \ -name '*.bmp' -o -name '*.ico' -o -name '*.png' -o \ -name '*.rc' -o -name '*.xpm'` $$t; \ @@ -536,6 +530,9 @@ SAMPLES_DIST: ALL_GUI_DIST done # copy the rest, not covered by the above loop + $(CP_P) $(SAMPDIR)/animate/hourglass.ani $(DISTDIR)/samples/hourglass.ani + $(CP_P) $(SAMPDIR)/animate/throbber.gif $(DISTDIR)/samples/animate + $(CP_P) $(SAMPDIR)/console/testdata.fc $(DISTDIR)/samples/console $(CP_P) $(SAMPDIR)/dialogs/tips.txt $(DISTDIR)/samples/dialogs @@ -609,21 +606,6 @@ UTILS_DIST: ALL_GUI_DIST $(CP_P) $(UTILSDIR)/tex2rtf/src/*.cpp $(DISTDIR)/utils/tex2rtf/src -$(CP_P) $(UTILSDIR)/tex2rtf/src/tex2rtf.* $(DISTDIR)/utils/tex2rtf/src - mkdir $(DISTDIR)/utils/configtool - mkdir $(DISTDIR)/utils/configtool/configs - mkdir $(DISTDIR)/utils/configtool/docs - mkdir $(DISTDIR)/utils/configtool/src - mkdir $(DISTDIR)/utils/configtool/src/bitmaps - mkdir $(DISTDIR)/utils/configtool/scripts - $(CP_P) $(UTILSDIR)/configtool/*.in $(DISTDIR)/utils/configtool - $(CP_P) $(UTILSDIR)/configtool/configs/*.wxs $(DISTDIR)/utils/configtool/configs - $(CP_P) $(UTILSDIR)/configtool/docs/*.txt $(DISTDIR)/utils/configtool/docs - $(CP_P) $(UTILSDIR)/configtool/src/*.h $(DISTDIR)/utils/configtool/src - $(CP_P) $(UTILSDIR)/configtool/src/*.in $(DISTDIR)/utils/configtool/src - $(CP_P) $(UTILSDIR)/configtool/src/*.cpp $(DISTDIR)/utils/configtool/src - $(CP_P) $(UTILSDIR)/configtool/src/bitmaps/*.xpm $(DISTDIR)/utils/configtool/src/bitmaps - $(CP_P) $(UTILSDIR)/configtool/scripts/????* $(DISTDIR)/utils/configtool/scripts - mkdir $(DISTDIR)/utils/emulator mkdir $(DISTDIR)/utils/emulator/src mkdir $(DISTDIR)/utils/emulator/docs @@ -738,7 +720,7 @@ distdir: @GUIDIST@ @# in other dist targets. find $(DISTDIR) \( -name "CVS" -o -name ".cvsignore" -o -name "*.dsp" -o -name "*.dsw" -o -name "*.hh*" -o \ \( -name "makefile.*" -a ! -name "makefile.unx" \) \) \ - -print | egrep -v '/(samples|dbbrowse)/.*\.hh.$$' | xargs rm -rf + -print | egrep -v '/samples/.*\.hh.$$' | xargs rm -rf dist: distdir @cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE); @@ -807,7 +789,6 @@ 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. - 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" \