summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-05 12:37:29 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-05 12:49:20 +0100
commitfb5af2c54f2a27c1154d64fe4d111003ce5fcb03 (patch)
tree049d6f7c7a3006390b6a8afbc6926948d85b467c /po
parent19aa428a6c72a8cc525898f5b855d5389da03870 (diff)
downloadmgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar.gz
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar.bz2
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.tar.xz
mgaonline-fb5af2c54f2a27c1154d64fe4d111003ce5fcb03.zip
Enhancement Makefile and add support for DESTDIR
Diffstat (limited to 'po')
-rw-r--r--po/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/po/Makefile b/po/Makefile
index a7b7c34b..010ffca0 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -1,5 +1,5 @@
# Installation directories
-localedir = $(PREFIX)/usr/share/locale
+LOCALEDIR = $(DESTDIR)/usr/share/locale
PGOAL = mgaonline
@@ -16,8 +16,8 @@ all: $(GOALS)
install: all
for l in $(LANGS); do \
- install -d $(localedir)/$$l/LC_MESSAGES; \
- install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(PGOAL).mo; \
+ install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \
+ install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PGOAL).mo; \
done
clean:
@@ -43,4 +43,3 @@ merge:
msgmerge "$$n" $(PGOAL).pot > "$$n"t; \
mv -f "$$n"t "$$n"; \
done
-