X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a947ddf372849cb7ba989c16661974c2333e3257..eb1115ef4e84b90189a50c15af4002e4e7306c01:/po/makefile?ds=sidebyside diff --git a/po/makefile b/po/makefile index 28890e079..9f8b7b22e 100644 --- a/po/makefile +++ b/po/makefile @@ -37,6 +37,7 @@ $(POTFILES) : $(PO)/%.pot : cat $(PO)/domains/$*/*.srclist > $(PO)/POTFILES_$*.in $(XGETTEXT) --default-domain=$* --directory=$(BASE) \ --add-comments --foreign --keyword=_ --keyword=N_ \ + --keyword=P_:1,2 \ --files-from=$(PO)/POTFILES_$*.in -o $(PO)/domains/$*/c.pot rm -f $(PO)/POTFILES_$*.in $(MSGCOMM) --more-than=0 $(PO)/domains/$*/c.pot $(PO)/domains/$*/sh.pot --output=$@ @@ -65,11 +66,11 @@ $(MOFILES) : $(PO_DOMAINS)/%.mo : $(PO_DOMAINS)/%.po stats: for i in *.pot *.po; do echo -n "$$i: "; msgfmt --statistics $$i; done -binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES) update-po +binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES) .PHONY: update-po update-po: $(PACKAGE)-all.pot - for lang in ${LINGUAS}; do\ + for lang in ${LINGUAS}; do \ echo "Updating $$lang.po"; \ $(MSGMERGE) $$lang.po $(PACKAGE)-all.pot -o $$lang.new.po; \ cmp $$lang.new.po $$lang.po || cp $$lang.new.po $$lang.po; \ @@ -77,7 +78,7 @@ update-po: $(PACKAGE)-all.pot done clean: clean/local -clean/local: +clean/local: update-po rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d # Include the dependencies that are available