]> git.saurik.com Git - wxWidgets.git/blame - locale/Makefile
some warnings fixed
[wxWidgets.git] / locale / Makefile
CommitLineData
efa5b5de
VZ
1# this is the makefile for generating wxstd.po message catalog file and
2# building lang.mo files from the translated lang.po catalogs
3
4# this makefile may be invoked to build either wxstd.po or any lang.mo
5
6# the programs we use (TODO: use configure to detect them)
7MSGFMT=msgfmt
ea8849aa 8MSGMERGE=msgmerge
efa5b5de
VZ
9XGETTEXT=xgettext
10XARGS=xargs
11
ea8849aa
VZ
12# common xgettext args: C++ syntax, use the specified macro names as markers
13XGETTEXT_ARGS=-C -k_ -kwxTRANSLATE -s
14
efa5b5de
VZ
15# implicit rules
16%.mo: %.po
17 $(MSGFMT) -o $@ $<
18
ea8849aa
VZ
19# a PO file must be updated from wxstd.po to include new translations
20%.po: wxstd.po
21 if [ -f $@ ]; then $(MSGMERGE) $@ wxstd.po > $@.new && mv $@.new $@; else cp wxstd.po $@; fi
efa5b5de 22
ea8849aa
VZ
23wxstd.po:
24 find ../include -name "*.h" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
25 find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) $(XGETTEXT_ARGS) -o wxstd.po
efa5b5de
VZ
26
27# targets depending on this one will be always remade
28FORCE:
29
30# $Id$