aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2016-12-13 04:53:11 +0800
committerrene <rene@FreeBSD.org>2016-12-13 04:53:11 +0800
commit238c6e45eb2c4565fb202f80aa8051bcdaf2ac5f (patch)
treee84f9f046176fa4e838c80783161b3015521fdb0
parentba8396e41f43d7ed000c030de5bb1ae44fe31367 (diff)
downloadfreebsd-ports-gnome-238c6e45eb2c4565fb202f80aa8051bcdaf2ac5f.tar.gz
freebsd-ports-gnome-238c6e45eb2c4565fb202f80aa8051bcdaf2ac5f.tar.zst
freebsd-ports-gnome-238c6e45eb2c4565fb202f80aa8051bcdaf2ac5f.zip
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)
-rw-r--r--Mk/Uses/kmod.mk4
1 files changed, 4 insertions, 0 deletions
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