1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

If KERN_DEBUGDIR happens to be empty, the port would try to install

files twice to the same location leading to make(1) warnings.

Reported by:	marino
Pointy hat:	rene (r428333)
This commit is contained in:
Rene Ladan 2016-12-12 20:53:11 +00:00
parent 9ed40c74db
commit 1e47d4549b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428429

View File

@ -41,12 +41,16 @@ KERN_DEBUGDIR?= ${DEBUGDIR}
_INCLUDE_USES_KMOD_POST_MK= yes
_USES_install+= 290:${STAGEDIR}${KMODDIR}
.if !empty(KERN_DEBUGDIR)
_USES_install+= 291:${STAGEDIR}${KERN_DEBUGDIR}${KMODDIR}
.endif
${STAGEDIR}${KMODDIR}:
@${MKDIR} ${.TARGET}
.if !empty(KERN_DEBUGDIR)
${STAGEDIR}${KERN_DEBUGDIR}${KMODDIR}:
@${MKDIR} ${.TARGET}
.endif
.endif