summaryrefslogtreecommitdiff
path: root/po/subdir.mk
blob: 3cddb5da199275a8568dbd58f2815d56feb73eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include $(dir $(lastword $(MAKEFILE_LIST)))/../../config.mk
include $(topsrcdir)/build-aux/Makefile.head.mk

locale = $(notdir $(srcdir))
domains = $(patsubst %.po,%,$(filter %.po,$(files.src.src)))

$(outdir)/%.mo: $(srcdir)/%.po $(call at.path,$(srcdir)/../%.pot)
	msgfmt -o $@ $<

$(DESTDIR)$(localedir)/$(locale)/LC_MESSAGES/%.mo: $(outdir)/%.mo
	install -T -Dm644 '$<' '$@'

files.out.all += $(addsuffix .mo,$(domains))
files.sys.all += $(foreach domain,$(domains),$(localedir)/$(locale)/LC_MESSAGES/$(domain).mo)
at.subdirs += ..

include $(topsrcdir)/build-aux/Makefile.tail.mk