summaryrefslogtreecommitdiffstats
path: root/po/Makefile
blob: 52fc189e0efa6b6bb0869d4590faebeed6af1c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Installation directories
localedir = $(PREFIX)/usr/share/locale

LANGS = $(shell ls *.po | xargs -i basename {} .po )
PGOAL = drakwizard
GOALS = $(foreach a, $(LANGS), $(a).mo)


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; \
	done

clean:
	rm -f *~ *.[oas] *.mo $(GOALS) TAGS

%.h:
	@touch $@

%.mo: %.po
	msgfmt -o $@ $<