2014-08-11 20:56:26 +00:00
LOCALEDIR ?= /usr/share/locale
2014-08-19 22:06:33 +00:00
TOMBFILE = LC_MESSAGES/tomb.mo
2014-08-11 20:56:26 +00:00
2013-05-28 09:59:11 +00:00
all :
@rm -f tomb.pot
@./generate_translatable_strings.sh > tomb.pot
@echo "Strings generated in tomb.pot"
2014-09-13 15:32:12 +00:00
@echo "\n WARNING!\n This script makes some mistakes you MUST fix by hand:\n * Reapeated msgids: remove them\n * msgids with \\\": They are most probably broken, look\n for the full strings in ../../tomb\n and replace them."
2014-08-11 20:56:26 +00:00
2014-09-13 15:32:12 +00:00
.PHONY : install
2014-09-01 08:11:23 +00:00
install : es .mo ru .mo fr .mo de .mo
2014-08-19 22:06:33 +00:00
@install -Dm644 es.mo ${ LOCALEDIR } /es/${ TOMBFILE }
@install -Dm644 ru.mo ${ LOCALEDIR } /ru/${ TOMBFILE }
@install -Dm644 fr.mo ${ LOCALEDIR } /fr/${ TOMBFILE }
2014-09-01 08:11:23 +00:00
@install -Dm644 de.mo ${ LOCALEDIR } /de/${ 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