efa5b5de4b
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
24 lines
593 B
Makefile
24 lines
593 B
Makefile
# this is the makefile for generating wxstd.po message catalog file and
|
|
# building lang.mo files from the translated lang.po catalogs
|
|
|
|
# this makefile may be invoked to build either wxstd.po or any lang.mo
|
|
|
|
# the programs we use (TODO: use configure to detect them)
|
|
MSGFMT=msgfmt
|
|
XGETTEXT=xgettext
|
|
XARGS=xargs
|
|
|
|
# implicit rules
|
|
%.mo: %.po
|
|
$(MSGFMT) -o $@ $<
|
|
|
|
|
|
wxstd.po: FORCE
|
|
find ../include -name "*.h" | $(XARGS) $(XGETTEXT) -C -k_ -j -o wxstd.po
|
|
find ../src -name "*.cpp" | $(XARGS) $(XGETTEXT) -C -k_ -j -o wxstd.po
|
|
|
|
# targets depending on this one will be always remade
|
|
FORCE:
|
|
|
|
# $Id$
|