diff options
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile | 8 |
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: |