tMakefile - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tMakefile (738B)
---
1 PREFIX ?= /usr/local
2 LOCALEDIR ?= ${PREFIX}/share/locale
3 TOMBFILE = LC_MESSAGES/tomb.mo
4
5 all:
6 @rm -f tomb.pot
7 @perl generate_translatable_strings.pl > tomb.pot
8 @echo "Strings generated in tomb.pot"
9
10 .PHONY: install
11 install: es.mo ru.mo fr.mo de.mo sv.mo it.mo
12 install -Dm644 es.mo ${DESTDIR}${LOCALEDIR}/es_ES/${TOMBFILE}
13 install -Dm644 ru.mo ${DESTDIR}${LOCALEDIR}/ru_RU/${TOMBFILE}
14 install -Dm644 fr.mo ${DESTDIR}${LOCALEDIR}/fr_FR/${TOMBFILE}
15 install -Dm644 de.mo ${DESTDIR}${LOCALEDIR}/de_DE/${TOMBFILE}
16 install -Dm644 sv.mo ${DESTDIR}${LOCALEDIR}/sv_SV/${TOMBFILE}
17 install -Dm644 it.mo ${DESTDIR}${LOCALEDIR}/it_IT/${TOMBFILE}
18 @echo "Translations installed."
19
20 %.mo: %.po
21 msgfmt -o $@ $<
22
23 .PHONY: clean
24 clean:
25 @rm -f *.mo