aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-04-04 13:33:45 +0800
committerbdrewery <bdrewery@FreeBSD.org>2015-04-04 13:33:45 +0800
commit90341cb80396ef905839fce63442c58df74984e3 (patch)
tree38b11b11247ed85e4573d3ac700a8a96b43dd80a /Mk
parent2ea2295657ed97f76d6461376c3caa0a232db6c6 (diff)
downloadfreebsd-ports-gnome-90341cb80396ef905839fce63442c58df74984e3.tar.gz
freebsd-ports-gnome-90341cb80396ef905839fce63442c58df74984e3.tar.zst
freebsd-ports-gnome-90341cb80396ef905839fce63442c58df74984e3.zip
Fix invoking DEV tests when not in a port. This fixes some cases where
'make -f Mk/bsd.port.mk -V ...' would invoke the tests and cause unexpected errors such as with r370475. With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index aad44e0f8c82..e970b9d3d310 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1295,7 +1295,9 @@ WITH_DEBUG= yes
# Start of pre-makefile section.
.if !defined(AFTERPORTMK) && !defined(INOPTIONSMK)
+.if defined(PORTNAME)
.include "${PORTSDIR}/Mk/bsd.sanity.mk"
+.endif
_PREMKINCLUDED= yes