2014-11-16 14:04:05 +01:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
LOCALEDIR ?= ${PREFIX}/share/locale
|
2014-08-20 00:06:33 +02:00
|
|
|
TOMBFILE = LC_MESSAGES/tomb.mo
|
2014-08-11 22:56:26 +02:00
|
|
|
|
2013-05-28 11:59:11 +02:00
|
|
|
all:
|
|
|
|
@rm -f tomb.pot
|
2014-12-01 17:05:27 +01:00
|
|
|
@perl generate_translatable_strings.pl > tomb.pot
|
2013-05-28 11:59:11 +02:00
|
|
|
@echo "Strings generated in tomb.pot"
|
2014-09-13 17:32:12 +02:00
|
|
|
|
|
|
|
.PHONY: install
|
2014-09-01 10:11:23 +02:00
|
|
|
install: es.mo ru.mo fr.mo de.mo
|
2014-11-16 14:04:05 +01:00
|
|
|
install -Dm644 es.mo ${DESTDIR}${LOCALEDIR}/es_ES/${TOMBFILE}
|
|
|
|
install -Dm644 ru.mo ${DESTDIR}${LOCALEDIR}/ru_RU/${TOMBFILE}
|
|
|
|
install -Dm644 fr.mo ${DESTDIR}${LOCALEDIR}/fr_FR/${TOMBFILE}
|
|
|
|
install -Dm644 de.mo ${DESTDIR}${LOCALEDIR}/de_DE/${TOMBFILE}
|
2014-09-13 17:32:12 +02:00
|
|
|
@echo "Translations installed."
|
2014-08-11 22:56:26 +02:00
|
|
|
|
2014-08-20 00:06:33 +02:00
|
|
|
%.mo: %.po
|
2014-08-11 22:56:26 +02:00
|
|
|
msgfmt -o $@ $<
|
2014-09-13 17:32:12 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -f *.mo
|