From 1e47d4549b16c7a921f637aa235d9d7d98efd444 Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Mon, 12 Dec 2016 20:53:11 +0000 Subject: [PATCH] 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) --- Mk/Uses/kmod.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mk/Uses/kmod.mk b/Mk/Uses/kmod.mk index 28c18e63805b..a7c56f3c5766 100644 --- a/Mk/Uses/kmod.mk +++ b/Mk/Uses/kmod.mk @@ -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