]> git.saurik.com Git - wxWidgets.git/blame_incremental - locale/Makefile
Added RTLD_GLOBAL to dlopen() flags which is needed if libraries depend
[wxWidgets.git] / locale / Makefile
... / ...
CommitLineData
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
8MSGMERGE=msgmerge
9XGETTEXT=xgettext
10XARGS=xargs
11
12# common xgettext args: C++ syntax, use the specified macro names as markers
13XGETTEXT_ARGS=-C -k_ -kwxTRANSLATE -s
14
15# implicit rules
16%.mo: %.po
17 $(MSGFMT) -o $@ $<
18
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
22
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
26
27# targets depending on this one will be always remade
28FORCE:
29
30# $Id$