From ced2e5fcb8e279fa83f2e19476803468404fa241 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Sun, 16 Nov 2014 14:04:05 +0100 Subject: [PATCH] fixes to Makefiles informed by issue #154 --- Makefile | 2 +- extras/po/Makefile | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b113e35..7ebaf5a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PROG = tomb PREFIX ?= /usr/local -MANDIR ?= /usr/share/man +MANDIR ?= ${PREFIX}/share/man all: @echo diff --git a/extras/po/Makefile b/extras/po/Makefile index 29a3d36..731f819 100644 --- a/extras/po/Makefile +++ b/extras/po/Makefile @@ -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