Tomb/extras/translations/Makefile

26 lines
738 B
Makefile
Raw Normal View History

PREFIX ?= /usr/local
LOCALEDIR ?= ${PREFIX}/share/locale
2014-08-19 22:06:33 +00:00
TOMBFILE = LC_MESSAGES/tomb.mo
2014-08-11 20:56:26 +00:00
all:
@rm -f tomb.pot
@perl generate_translatable_strings.pl > tomb.pot
@echo "Strings generated in tomb.pot"
2014-09-13 15:32:12 +00:00
.PHONY: install
2015-07-28 15:44:24 +00:00
install: es.mo ru.mo fr.mo de.mo sv.mo it.mo
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}
2015-07-27 16:21:36 +00:00
install -Dm644 sv.mo ${DESTDIR}${LOCALEDIR}/sv_SV/${TOMBFILE}
2015-07-28 15:44:24 +00:00
install -Dm644 it.mo ${DESTDIR}${LOCALEDIR}/it_IT/${TOMBFILE}
2014-09-13 15:32:12 +00:00
@echo "Translations installed."
2014-08-11 20:56:26 +00:00
2014-08-19 22:06:33 +00:00
%.mo: %.po
2014-08-11 20:56:26 +00:00
msgfmt -o $@ $<
2014-09-13 15:32:12 +00:00
.PHONY: clean
clean:
@rm -f *.mo