#
NAME = clawsker
+VERSION = $(shell cat ../VERSION)
PREFIX ?= /usr/local
DATADIR = ${PREFIX}/share
LOCALEDIR = ${DATADIR}/locale
-XG_ARGS = "--keyword=_ --flag=_:1:pass-java-format -L Perl -w 80"
-LINGUAS = "es"
+XG_ARGS = --keyword=_ --flag=_:1:pass-java-format -L Perl -w 80 --package-name=${NAME} --package-version=${VERSION} --msgid-bugs-address=ricardo@mones.org
+LINGUAS = es sr sr@latin fr
all: build
update-pot:
xgettext ${XG_ARGS} -f ./POTFILES -d ${NAME} -o ./${NAME}.pot
+%.pox: %.po
+ msgmerge -o $@ --previous $< ${NAME}.pot
+
build:
for po in ${LINGUAS}; \
do msgfmt -c -o t-$${po} $${po}.po && mv -f t-$${po} $${po}.mo; \
done
clean-build:
+ rm -f *.mo
+
+clean-pox:
+ rm -f *.pox
-clean:
- rm -f *.mo *~
+clean: clean-build
+ rm -f *~
-.PHONY: all build install install-dirs uninstall clean clean-build update-pot
+.PHONY: all build install install-dirs uninstall clean clean-pox clean-build update-pot