Extend r321900 (_FILESMKDIR) support to ${PROG}

This commit is contained in:
Enji Cooper 2017-08-02 22:08:49 +00:00
parent 927b89d07b
commit eb51cdee61

View File

@ -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}