diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2013-06-18 17:50:00 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2013-06-18 17:50:00 +0000 |
commit | fb7a6f1919017f0c32091447bcdc5b311be459de (patch) | |
tree | 7d6fb682abeee05add5a7fb0e5076bf0e10614dd | |
parent | 173245d303590938d35161632a09f2f71837b5da (diff) |
create include directories if they are non-existent
-rw-r--r-- | kerberosV/Makefile.inc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/kerberosV/Makefile.inc b/kerberosV/Makefile.inc index 441941038a7..a72137d8820 100644 --- a/kerberosV/Makefile.inc +++ b/kerberosV/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.13 2013/06/18 17:27:21 robert Exp $ +# $OpenBSD: Makefile.inc,v 1.14 2013/06/18 17:49:59 robert Exp $ KRB5DIR= ${.CURDIR}/../../../kerberosV/src @@ -71,6 +71,10 @@ ${group}NAME_${header:T}?= ${header:T} .endif includes: _${group}INS_${header:T} _${group}INS_${header:T}: ${header} +.if !exists(${DESTDIR}${${group}DIR_${.ALLSRC:T}}) + ${INSTALL} -d -o root -g bin -m 755 \ + ${DESTDIR}${${group}DIR_${.ALLSRC:T}} +.endif ${INSTALL} -C -o ${${group}OWN_${.ALLSRC:T}} \ -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ ${.ALLSRC} \ @@ -82,6 +86,10 @@ _${group}INCS+= ${header} .if !empty(_${group}INCS) includes: _${group}INS _${group}INS: ${_${group}INCS} +.if !exists(${DESTDIR}${${group}DIR}) + ${INSTALL} -d -o root -g bin -m 755 \ + ${DESTDIR}${${group}DIR} +.endif .if defined(${group}NAME) ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME} @@ -95,7 +103,4 @@ _${group}INS: ${_${group}INCS} .endfor .endif -#YACC=bison -by -#YACC=byacc - .include <bsd.own.mk> |