all: messages.pot mofiles
-e=set -e; exec >$@.tmp
-f=mv -f $@.tmp $@
-o= >$@.tmp && $f
-
-S=@
-# Set S='' to see commands being run
+include ../i18n-common.make
.%.potfiles:
$S $e; echo ../$*; $f
sed "s#^#.$*.pot: #" $<; \
$f
-# echo 'MOS_$$(addsuffix'
-# find -name $*.mo |sed ; $f
-
-include .dgit.make
-include .git-debrebase.make
-include .common.make
%.mo: %.po
$S msgfmt -o $@ $<
-XGETTEXT_OPTS += -Lperl -k__ -kf_
+XGETTEXT_OPTS += -Lperl -k__ -kf_ -ki_
XGETTEXT_OPTS += --from-code=UTF-8
XGETTEXT_OPTS += --package-name=dgit --package-version=ongoing
# The --package-* avoids this error from make check's `msgfmt -c'