You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
908 B

DOMAIN = debian-tasks
MOS:=$(addsuffix .mo, $(LANGS))
all: $(POTFILE) $(MOS)
touch build_stamp
$(POTFILE): ../../$(DOMAIN).desc
sed -e 's/^Description:/_&/' ../../$(DOMAIN).desc | \
perl -ne 'BEGIN {$$/="\n\n"}; print unless /Section: l10n/' > $(DOMAIN).desc
PODEBCONF_HEADER=/dev/null debconf-updatepo --podir=.
mv templates.pot $(POTFILE)-update
if test -f $(POTFILE); then \
if diff -I '^"POT-Creation-Date:' -I '^Report-Msgid-Bugs-To:' $(POTFILE) $(POTFILE)-update >/dev/null 2>&1; then \
rm -f $(POTFILE)-update; \
else \
rm -f $(POTFILE); \
mv $(POTFILE)-update $(POTFILE); \
fi; \
else \
mv $(POTFILE)-update $(POTFILE); \
fi %.po
msgfmt -o $@ $<
-rm -f build_stamp
-rm -f $(DOMAIN).desc
-rm -f *.mo
update: $(addprefix update-, $(LANGS))
update-%: %.po $(POTFILE)
mv $< $<.bak
msgmerge $<.bak $(POTFILE) > $<