blob: 712160de381697944d10d36584933e8f4cd76a95 (
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
26
27
28
29
30
|
# Installation directories
localedir = $(DESTDIR)/usr/share/locale
LANGS = $(shell ls *.po | xargs -i basename {} .po )
PGOAL = drakconf
GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo)
# $(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
%.mo: %.po
msgfmt -o $@ $<
%.pot: POTFILES.in
xgettext --default-domain=`basename $@ .pot` --directory=.. \
--add-comments --keyword=__ --keyword=_ --keyword=N_ \
--keyword=I_ --keyword=i18n \
--files-from=./POTFILES.in && \
mv `basename $@ .pot`.po $@
|