diff options
author | phk <phk@FreeBSD.org> | 2005-08-03 09:26:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-08-03 09:26:01 +0000 |
commit | 7a7a209869280579a8ede18e7b20b9d0fb888d42 (patch) | |
tree | b0f04e23bf6704ba3893aebd191ac5e15064927a /share | |
parent | 99df49e41ed2d608409703e42f0a4f4346fab578 (diff) | |
download | FreeBSD-src-7a7a209869280579a8ede18e7b20b9d0fb888d42.zip FreeBSD-src-7a7a209869280579a8ede18e7b20b9d0fb888d42.tar.gz |
Don't install includes if NO_TOOLCHAIN
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.incs.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/bsd.incs.mk b/share/mk/bsd.incs.mk index f3b99e3..5d7d9b5 100644 --- a/share/mk/bsd.incs.mk +++ b/share/mk/bsd.incs.mk @@ -39,10 +39,12 @@ ${group}NAME_${header:T}?= ${header:T} .endif installincludes: _${group}INS_${header:T} _${group}INS_${header:T}: ${header} +.if !defined(NO_TOOLCHAIN) ${INSTALL} -C -o ${${group}OWN_${.ALLSRC:T}} \ -g ${${group}GRP_${.ALLSRC:T}} -m ${${group}MODE_${.ALLSRC:T}} \ ${.ALLSRC} \ ${DESTDIR}${${group}DIR_${.ALLSRC:T}}/${${group}NAME_${.ALLSRC:T}} +.endif .else _${group}INCS+= ${header} .endif @@ -50,6 +52,7 @@ _${group}INCS+= ${header} .if !empty(_${group}INCS) installincludes: _${group}INS _${group}INS: ${_${group}INCS} +.if !defined(NO_TOOLCHAIN) .if defined(${group}NAME) ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ ${.ALLSRC} ${DESTDIR}${${group}DIR}/${${group}NAME} @@ -57,6 +60,7 @@ _${group}INS: ${_${group}INCS} ${INSTALL} -C -o ${${group}OWN} -g ${${group}GRP} -m ${${group}MODE} \ ${.ALLSRC} ${DESTDIR}${${group}DIR} .endif +.endif # !defined(NO_TOOLCHAIN) .endif .endif # defined(${group}) && !empty(${group}) @@ -64,6 +68,7 @@ _${group}INS: ${_${group}INCS} .if defined(INCSLINKS) && !empty(INCSLINKS) installincludes: +.if !defined(NO_TOOLCHAIN) @set ${INCSLINKS}; \ while test $$# -ge 2; do \ l=$$1; \ @@ -73,6 +78,7 @@ installincludes: ${ECHO} $$t -\> $$l; \ ln -fs $$l $$t; \ done; true +.endif # !defined(NO_TOOLCHAIN) .endif .endif # !target(installincludes) |