blob: 365c5fd2a636fbc296796a7522e8ac6cbc30561d (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
DESTDIR = ..
PREFIX = /web/locale
POFILES = \
ca.po \
cs.po \
da.po \
de.po \
el_GR.po \
es.po \
fr.po \
he.po \
hr.po \
hu.po \
it.po \
nb_NO.po \
pl.po \
pt.po \
ro.po \
ru.po \
sr.po \
tr.po \
uk.po \
zh_CN.po
MOFILES = ${POFILES:.po=.mo}
LOCALES = ${MOFILES:.mo=}
all: ${MOFILES}
%.mo: %.po
msgfmt -o $@ $<
clean:
rm *.mo
install: all
for l in ${LOCALES}; do mkdir -p ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/; done
for l in ${LOCALES}; do cp $$l.mo ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/aur.mo; done
uninstall:
for l in ${LOCALES}; do rm -rf ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/; done
.PHONY: all clean install uninstall
|