From 949f442bd4ccd35150e4a6642df4f136560f0e3c Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Wed, 22 Apr 2015 17:57:08 +0200 Subject: Fixed mo files installation --- Makefile.PL | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index d133a89e..3ac5cd53 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -94,7 +94,7 @@ sub postamble { my $newTargets = << 'MAKE_FRAG'; # Installation directories -localedir = $(PREFIX)/usr/share/locale +localedir = $(PREFIX)/share/locale PGOAL = manatools @@ -111,14 +111,14 @@ PL_FILES = $(shell ls lib/ManaTools/*.pm) $(shell ls lib/ManaTools/Shared/*.pm) POFILES = $(shell ls po/*.po) MOFILES = $(POFILES:%.po=%.mo) -LANGS = $(POFILES:%.po=%) +LANGS = $(POFILES:po/%.po=%) GOALS = $(PGOAL).pot $(MOFILES) locales: $(GOALS) install_locales: locales - for l in $(LANGS); do \ + cd po && for l in $(LANGS); do \ install -d $(localedir)/$$l/LC_MESSAGES; \ install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(PGOAL).mo; \ done -- cgit v1.2.1