tfixes to Makefiles informed by issue #154 - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit ced2e5fcb8e279fa83f2e19476803468404fa241 DIR parent bbb290c81a30fdf5f285a0b8d01a6c2338206791 HTML Author: Jaromil <jaromil@dyne.org> Date: Sun, 16 Nov 2014 14:04:05 +0100 fixes to Makefiles informed by issue #154 Diffstat: M Makefile | 2 +- M extras/po/Makefile | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) --- DIR diff --git a/Makefile b/Makefile t@@ -1,6 +1,6 @@ PROG = tomb PREFIX ?= /usr/local -MANDIR ?= /usr/share/man +MANDIR ?= ${PREFIX}/share/man all: @echo DIR diff --git a/extras/po/Makefile b/extras/po/Makefile t@@ -1,4 +1,5 @@ -LOCALEDIR ?= /usr/share/locale +PREFIX ?= /usr/local +LOCALEDIR ?= ${PREFIX}/share/locale TOMBFILE = LC_MESSAGES/tomb.mo all: t@@ -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