bitreich-drist

fork of bitreich.org/drist
git clone git://git.pyratebeard.net/bitreich-drist.git
Log | Files | Refs | README | LICENSE

commit 77c4be5036ce2fa61fed61f05a43cffa42201bdd
parent a3560000b77640b96c495660cdde812f7aeda55c
Author: Solene Rapenne <solene@perso.pw>
Date:   Wed,  3 Jul 2019 12:48:43 +0200

Remove install -D flag and use a mkdir before

Diffstat:
MMakefile | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -5,15 +5,17 @@ BIN = drist PREFIX ?= /usr/local BINDIR ?= ${PREFIX}/bin -MANDIR ?= ${PREFIX}/share/man +MANDIR ?= ${PREFIX}/man all: install: @echo installing executable to "${DESTDIR}${PREFIX}/bin" - @install -D "${BIN}" "${DESTDIR}${BINDIR}/${BIN}" + @mkdir -p "${DESTDIR}${BINDIR}" + @install "${BIN}" "${DESTDIR}${BINDIR}/${BIN}" @echo installing manual page to ${DESTDIR}${MANDIR}/man1 - @install -D "${BIN}.1" "${DESTDIR}${MANDIR}/man1/${BIN}.1" + @mkdir -p "${DESTDIR}${MANDIR}/man1" + @install "${BIN}.1" "${DESTDIR}${MANDIR}/man1/${BIN}.1" uninstall: @echo removing executable file from "${DESTDIR}${PREFIX}/bin"