aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-04-22 17:57:08 +0200
committerAngelo Naselli <anaselli@linux.it>2015-04-22 17:57:08 +0200
commit949f442bd4ccd35150e4a6642df4f136560f0e3c (patch)
treeedc47e79850b45304ff3bef3c28622f4c58b161a /Makefile.PL
parentcf418176c9547cd5e64f55079b892d34c27360e8 (diff)
downloadmanatools-949f442bd4ccd35150e4a6642df4f136560f0e3c.tar
manatools-949f442bd4ccd35150e4a6642df4f136560f0e3c.tar.gz
manatools-949f442bd4ccd35150e4a6642df4f136560f0e3c.tar.bz2
manatools-949f442bd4ccd35150e4a6642df4f136560f0e3c.tar.xz
manatools-949f442bd4ccd35150e4a6642df4f136560f0e3c.zip
Fixed mo files installation
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL6
1 files changed, 3 insertions, 3 deletions
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