tMerge pull request #89 from HalosGhost/patch-1 - tomb - the crypto undertaker (HTM) git clone git://parazyd.org/tomb.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4aa00fe5f66634f46116da1e57fe79346b59c07f (DIR) parent 2bb6704190d2048ec0d42a32c659344d6771569c (HTM) Author: BoySka <boyska@gmail.com> Date: Sun, 26 May 2013 13:41:54 -0700 Merge pull request #89 from HalosGhost/patch-1 Make: add DESTDIR variable for easy packaging Diffstat: M Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- (DIR) diff --git a/Makefile b/Makefile t@@ -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