aboutsummaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2024-01-21 13:51:56 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2024-01-21 14:20:44 +0000
commit927ab4ea7236153801e7b718f9cf698db5bb2617 (patch)
treee32027aa7f196ec69986e3dd468cb6b0342f0acb /po
parent1f7225f33af7c28b7af57d2fa1223c6559bae226 (diff)
downloadqarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar
qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar.gz
qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar.bz2
qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar.xz
qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.zip
Fix makefiles and update NEWS for i18n support.
Diffstat (limited to 'po')
-rw-r--r--po/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/po/Makefile b/po/Makefile
index 9fbc4a7..bc6abc5 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -1,6 +1,6 @@
NAME = qarepo
-localedir = ${prefix}/share/locale
+LOCALEDIR = $(DESTDIR)/usr/share/locale
PL_FILE = ../$(NAME)
DT_FILE = ../$(NAME).desktop.in
@@ -9,7 +9,7 @@ POFILES = $(wildcard *.po)
MOFILES = $(POFILES:%.po=%.mo)
LANGS = $(POFILES:%.po=%)
-all: $(NAME).pot $(POFILES) $(MOFILES)
+all: $(MOFILES)
%.mo: %.po
msgfmt -o $@ $<
@@ -24,8 +24,8 @@ $(NAME).pot: $(PL_FILE) $(DT_FILE)
install: all
for l in $(LANGS); do \
- install -d $(localedir)/$$l/LC_MESSAGES; \
- install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(NAME).mo; \
+ install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \
+ install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \
done
clean: