From 300f04167074ef12e796f82db2729bcd95e181c2 Mon Sep 17 00:00:00 2001 From: Sam Stuewe Date: Sun, 26 May 2013 16:09:21 -0400 Subject: [PATCH] Make syntax more explicit and clean; Add DESTDIR variable for easy packaging --TODO-- * Add kdf installation * Add zsh completion installation --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d01add2..7360351 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ - +PROG = tomb PREFIX ?= /usr/local +MANDIR ?= /usr/share/man all: @echo "Tomb is a script and does not need compilation, it can be simply executed." @echo "To install it in /usr/local together with its manpage use 'make install'." install: - install tomb $(PREFIX)/bin - install doc/tomb.1 $(PREFIX)/share/man/man1 + @install -Dm755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG} + @install -Dm666 doc/${PROG}.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1