updated PYTHON_DIST for new wxPython location.

added INTL_DIST target for i18n files when --enable-intl is used.
make install now installs any .mo files it finds in locale.
bugfix for make install being a no op with static wxBase.
libs built with __WXDEBUG__ can now be installed alongside libs built without.
locale/Makefile now autodetects which languages are supported when make allpo
is used and added allmo target.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2000-05-20 22:17:32 +00:00
parent 99f792deea
commit aaa42385ce
4 changed files with 469 additions and 404 deletions

View File

@@ -3,7 +3,11 @@
# this makefile may be invoked to build either wxstd.po or any lang.mo
WX_LANGUAGES = cs.po da.po de.po fi.po fr.po
# Autodetect the languages we support. Currently this relies on make
# being called with this dir as the cwd, but if we generate this file
# with configure an explicit path should be specified -- RL.
WX_LINGUAS := `ls *.po 2> /dev/null | sed -n 's/\(wxstd\)\?\.po//p'`
# the programs we use (TODO: use configure to detect them)
MSGFMT=msgfmt
@@ -27,14 +31,18 @@ wxstd.po:
find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
allpo: update $(WX_LANGUAGES)
allpo: force-update
@-for t in $(WX_LINGUAS); do $(MAKE) $$t.po; done
update:
allmo:
@for t in $(WX_LINGUAS); do $(MAKE) $$t.mo; done
force-update:
$(RM) wxstd.po
# targets depending on this one will be always remade
FORCE:
.PHONY: allpo update
.PHONY: allpo allmo force-update
# $Id$