aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile.inc0
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-08-02 22:24:08 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-08-02 22:24:08 +0000
commit47606b869eb149ebb7135d6594c3b9b9f05b9aed (patch)
tree4d40e7b6b0dd4dfd7afc194675baa3fa2896ab9d /tests/Makefile.inc0
parenteb51cdee612cda60747fb8e0d8eb8808ec54330d (diff)
downloadsrc-47606b869eb149ebb7135d6594c3b9b9f05b9aed.tar.gz
src-47606b869eb149ebb7135d6594c3b9b9f05b9aed.zip
Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that
tests/... is a special snowflake directory and using HAS_TESTS would result in a nasty layering violation between bsd.tests.mk and bsd.prog.mk. Add reachover Makefile.inc's which get the default value from Makefile.inc0 (inspired by gnu/usr.bin/binutils/Makefile.inc0).
Notes
Notes: svn path=/projects/make-check-sandbox/; revision=321960
Diffstat (limited to 'tests/Makefile.inc0')
-rw-r--r--tests/Makefile.inc09
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Makefile.inc0 b/tests/Makefile.inc0
new file mode 100644
index 000000000000..84e1307a2386
--- /dev/null
+++ b/tests/Makefile.inc0
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+# tests/... doesn't conform to bsd.lib.mk and bsd.prog.mk, so specify a sane
+# default for MK_CHECK_USE_SANDBOX. src.opts.mk will override the value if the
+# user sets it to no.
+MK_CHECK_USE_SANDBOX= yes
+
+.include <src.opts.mk>
+