From 91d52b3dbe197681c3252703ae57594dfd755f5a Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 6 Oct 2020 12:59:04 +0200 Subject: [PATCH] Replace install -D with mkdir The -D flag of install is not portable (for example, it is not present in the FreeBSD version of the utility). Use mkdir instead. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7430e09..b69b8b3 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,10 @@ clean: -rm ${OBJS} ${PROG} install: all - install -D -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG} - install -D -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1 + mkdir -p ${DESTDIR}${PREFIX}/bin + install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG} + mkdir -p ${DESTDIR}${MANPREFIX}/man1 + install -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1 uninstall: rm -f ${DESTDIR}${PREFIX}/bin/${PROG}