1 # this is the makefile for generating wxstd.po message catalog file and
2 # building lang.mo files from the translated lang.po catalogs
4 # this makefile may be invoked to build either wxstd.po or any lang.mo
6 # the programs we use (TODO: use configure to detect them)
12 # common xgettext args: C++ syntax, use the specified macro names as markers
13 XGETTEXT_ARGS=-C -k_ -kwxTRANSLATE -s
19 # a PO file must be updated from wxstd.po to include new translations
21 if [ -f $@ ]; then $(MSGMERGE) $@ wxstd.po > $@.new && mv $@.new $@; else cp wxstd.po $@; fi
24 find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
25 find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
27 # targets depending on this one will be always remade