From eb51cdee612cda60747fb8e0d8eb8808ec54330d Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Wed, 2 Aug 2017 22:08:49 +0000 Subject: [PATCH] Extend r321900 (_FILESMKDIR) support to ${PROG} --- share/mk/bsd.prog.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 960499e30dd8..b002b49f2457 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -229,6 +229,9 @@ _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} realinstall: _proginstall .ORDER: beforeinstall _proginstall _proginstall: +.ifdef _FILESMKDIR + ${INSTALL} -d ${DESTDIR}${BINDIR} +.endif .if defined(PROG) ${INSTALL} ${TAG_ARGS} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}/${PROGNAME}