Remove install -D flag and use a mkdir before - drist - a remote deployment tool HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 77c4be5036ce2fa61fed61f05a43cffa42201bdd DIR parent a3560000b77640b96c495660cdde812f7aeda55c HTML 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: M Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- DIR 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"