fixes to Makefiles informed by issue #154

This commit is contained in:
Jaromil 2014-11-16 14:04:05 +01:00
parent bbb290c81a
commit ced2e5fcb8
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
PROG = tomb
PREFIX ?= /usr/local
MANDIR ?= /usr/share/man
MANDIR ?= ${PREFIX}/share/man
all:
@echo

View File

@ -1,4 +1,5 @@
LOCALEDIR ?= /usr/share/locale
PREFIX ?= /usr/local
LOCALEDIR ?= ${PREFIX}/share/locale
TOMBFILE = LC_MESSAGES/tomb.mo
all:
@ -8,10 +9,10 @@ all:
.PHONY: install
install: es.mo ru.mo fr.mo de.mo
@install -Dm644 es.mo ${LOCALEDIR}/es/${TOMBFILE}
@install -Dm644 ru.mo ${LOCALEDIR}/ru/${TOMBFILE}
@install -Dm644 fr.mo ${LOCALEDIR}/fr/${TOMBFILE}
@install -Dm644 de.mo ${LOCALEDIR}/de/${TOMBFILE}
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}
@echo "Translations installed."
%.mo: %.po