summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile15
1 files changed, 10 insertions, 5 deletions
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