mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-11 07:30:56 +00:00
Merge pull request #89 from HalosGhost/patch-1
Make: add DESTDIR variable for easy packaging
This commit is contained in:
commit
4aa00fe5f6
7
Makefile
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user