aboutsummaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/po/Makefile b/po/Makefile
index 8f995fc8..b88aebff 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -27,11 +27,11 @@ merge: $(PGOAL).pot
mv -f "$$n"t "$$n"; \
done
-$(PGOAL).pot: $(PL_FILES)
- intltool-update --gettext-package desktopstuff --pot
+$(PGOAL).pot: $(PL_FILES) POTFILES.in
+ intltool-update --gettext-package non-perl --pot
perl_checker -q --generate-pot $(PGOAL)_tmp.pot $(PL_FILES)
- msgcat --use-first $(PGOAL)_tmp.pot desktopstuff.pot > $@
- rm -f desktopstuff.pot $(PGOAL)_tmp.pot
+ msgcat --use-first $(PGOAL)_tmp.pot non-perl.pot > $@
+ rm -f non-perl.pot $(PGOAL)_tmp.pot
install:
for l in $(LANGS); do \
@@ -39,8 +39,10 @@ install:
install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PGOAL).mo; \
done
+POTFILES.in:
+ (cd .. ; /bin/ls -1 data/*.desktop.in mime/*.desktop.in; ) > POTFILES.in
clean:
- @rm -rf *.mo *.pof *.pog $(POFILES:%=%t) $(PL_CFILES) desktopstuff.pot $(PGOAL)_tmp.pot
+ @rm -rf *.mo *.pof *.pog $(POFILES:%=%t) $(PL_CFILES) non-perl.pot $(PGOAL)_tmp.pot
check:
for i in *.po; do msgfmt -c $$i -o /dev/null; done