From 3520dca63d26723c61f3426ea4ea32605873cb57 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Wed, 22 Apr 2015 13:40:11 +0200 Subject: Fixed some headers, and changed targets to clean_locales and install_locales instead of mo --- Makefile.PL | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 4dc3a7a9..d133a89e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -117,20 +117,23 @@ GOALS = $(PGOAL).pot $(MOFILES) locales: $(GOALS) -install_mo: locales +install_locales: locales for l in $(LANGS); do \ install -d $(localedir)/$$l/LC_MESSAGES; \ install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(PGOAL).mo; \ done -clean_mo: - rm -f *~ *.[oas] *.mo TAGS POTFILES.in +clean_locales: + rm -f po/*~ po/*.[oas] po/*.mo %.mo: %.po msgfmt --check -o $@ $< $(PGOAL).pot: $(PL_FILES) xgettext --from-code=UTF-8 --language=Perl -D ./ -o po/$@ \ + --msgid-bugs-address="https://bugs.mageia.org/" \ + --package-name=$(NAME) --package-version=$(VERSION) \ + --copyright-holder="Angelo Naselli - Matteo Pasotti" \ --keyword=N --keyword=N_ --keyword=P \ $(PL_FILES) -- cgit v1.2.1