From cae1f59f7459a136cf52ae3a868b8733ef8c0e80 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 12 Oct 2013 15:20:51 +0100 Subject: Use polkit for authorisation (mga#11125) --- po/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile index 0db50a50..243f5497 100644 --- a/po/Makefile +++ b/po/Makefile @@ -3,10 +3,9 @@ localedir = $(PREFIX)/usr/share/locale PGOAL = mgaonline -PL_FILES = $(shell cat POTFILES.in | sed 's,^,../,' ) +PL_FILES = ../mga*.pm ../mgaupdate ../mgaapplet ../mgaapplet-config POFILES = $(shell ls *.po) -PL_CFILES = $(PL_FILES:%=%_.c) POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) @@ -22,13 +21,19 @@ install: all done clean: - rm -f *~ *.[oas] *.mo TAGS $(PL_CFILES) + rm -f *~ *.[oas] *.mo TAGS POTFILES.in %.mo: %.po msgfmt -o $@ $< -$(PGOAL).pot: $(PL_FILES) $(CFILES) - perl_checker -q --generate-pot $(PGOAL).pot $(PL_FILES) +$(PGOAL).pot: $(PL_FILES) POTFILES.in + intltool-update --gettext-package non-perl --pot + perl_checker -q --generate-pot .$@ $(PL_FILES) + msgcat -w 2048 --use-first .$@ non-perl.pot > $@ + rm -f non-perl.pot ..$@ .$@ + +POTFILES.in: + (cd .. ; /bin/ls -1 polkit/*.policy.in; ) > POTFILES.in update_n_merge: $(PGOAL).pot merge -- cgit v1.2.1