aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-08-02 08:14:06 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-08-02 08:14:06 +0000
commit8c09935728787235a761b6104c91ad6885ed4cd8 (patch)
tree656506d15b213cca9be7a5a93c648871491e0f15
parent5e291c3faf37cc6fa065555c34041e5e67838a83 (diff)
downloadsrc-8c09935728787235a761b6104c91ad6885ed4cd8.tar.gz
src-8c09935728787235a761b6104c91ad6885ed4cd8.zip
Add HAS_TESTS to all Makefiles that use the SUBDIR.${MK_TESTS}+= tests idiom
Notes
Notes: svn path=/projects/make-check-sandbox/; revision=321911
-rw-r--r--bin/chmod/Makefile1
-rw-r--r--bin/pwait/Makefile1
-rw-r--r--bin/sh/Makefile5
-rw-r--r--lib/libcam/Makefile1
-rw-r--r--lib/libkvm/Makefile1
-rw-r--r--lib/libsbuf/Makefile1
-rw-r--r--usr.bin/du/Makefile1
-rw-r--r--usr.bin/stat/Makefile1
8 files changed, 9 insertions, 3 deletions
diff --git a/bin/chmod/Makefile b/bin/chmod/Makefile
index 3b2c2d1ecac6..ffb3352ba553 100644
--- a/bin/chmod/Makefile
+++ b/bin/chmod/Makefile
@@ -6,6 +6,7 @@
PACKAGE=runtime
PROG= chmod
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
diff --git a/bin/pwait/Makefile b/bin/pwait/Makefile
index ab9f3ae73565..210ae3cdb918 100644
--- a/bin/pwait/Makefile
+++ b/bin/pwait/Makefile
@@ -5,6 +5,7 @@
PACKAGE=runtime
PROG= pwait
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
diff --git a/bin/sh/Makefile b/bin/sh/Makefile
index 65856de36491..62a74f80f79c 100644
--- a/bin/sh/Makefile
+++ b/bin/sh/Makefile
@@ -64,8 +64,7 @@ syntax.c syntax.h: mksyntax
token.h: mktokens
sh ${.CURDIR}/mktokens
-.if ${MK_TESTS} != "no"
-SUBDIR+= tests
-.endif
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
diff --git a/lib/libcam/Makefile b/lib/libcam/Makefile
index 4ea82681a071..47280e22c270 100644
--- a/lib/libcam/Makefile
+++ b/lib/libcam/Makefile
@@ -47,6 +47,7 @@ SHLIB_MAJOR= 7
.include <src.opts.mk>
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile
index 38f997ae370d..3d3d6041da2b 100644
--- a/lib/libkvm/Makefile
+++ b/lib/libkvm/Makefile
@@ -38,6 +38,7 @@ MLINKS+=kvm_read.3 kvm_read2.3 kvm_read.3 kvm_write.3
.include <src.opts.mk>
+HAS_TESTS=
SUBDIR.${MK_TESTS}= tests
.include <bsd.lib.mk>
diff --git a/lib/libsbuf/Makefile b/lib/libsbuf/Makefile
index 3e89f11c1b6c..ac8be92c8dbd 100644
--- a/lib/libsbuf/Makefile
+++ b/lib/libsbuf/Makefile
@@ -14,6 +14,7 @@ VERSION_DEF= ${.CURDIR}/Version.def
.PATH: ${SRCTOP}/sys/kern
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
diff --git a/usr.bin/du/Makefile b/usr.bin/du/Makefile
index 4340812457d8..b9256f3cec30 100644
--- a/usr.bin/du/Makefile
+++ b/usr.bin/du/Makefile
@@ -6,6 +6,7 @@
PROG= du
LIBADD= util
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
diff --git a/usr.bin/stat/Makefile b/usr.bin/stat/Makefile
index bc560a4243d0..e0a5a10bcf58 100644
--- a/usr.bin/stat/Makefile
+++ b/usr.bin/stat/Makefile
@@ -7,6 +7,7 @@ PROG= stat
LINKS= ${BINDIR}/stat ${BINDIR}/readlink
MLINKS= stat.1 readlink.1
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>