aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netpfil/Makefile
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2018-04-10 12:45:34 +0000
committerKristof Provost <kp@FreeBSD.org>2018-04-10 12:45:34 +0000
commitcb625c1e17ec1b3f3b631ff559369e3209e7cb22 (patch)
tree60591c00d47b278c2455885af4fc266d1a8670a2 /tests/sys/netpfil/Makefile
parentfb4478a33619b2d254ee73c91dfdbf2b515f5607 (diff)
downloadsrc-cb625c1e17ec1b3f3b631ff559369e3209e7cb22.tar.gz
src-cb625c1e17ec1b3f3b631ff559369e3209e7cb22.zip
pf tests: Do not build or install if pf is not enabled
Do not build or install pf tests if WITHOUT_PF is set. This fixes the build failure with WITHOUT_PF=yes. Reported by: Vladimir Zakharov <zakharov.vv@gmail.com>
Notes
Notes: svn path=/head/; revision=332358
Diffstat (limited to 'tests/sys/netpfil/Makefile')
-rw-r--r--tests/sys/netpfil/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sys/netpfil/Makefile b/tests/sys/netpfil/Makefile
index f9719f6ce2b4..434c5532b63e 100644
--- a/tests/sys/netpfil/Makefile
+++ b/tests/sys/netpfil/Makefile
@@ -1,7 +1,11 @@
# $FreeBSD$
+.include <src.opts.mk>
+
TESTSDIR= ${TESTSBASE}/sys/netpfil
+.if ${MK_PF} != "no"
TESTS_SUBDIRS+= pf
+.endif
.include <bsd.test.mk>