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>
This commit is contained in:
Kristof Provost 2018-04-10 12:45:34 +00:00
parent fb4478a336
commit cb625c1e17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332358

View File

@ -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>