summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2014-04-21 21:39:25 +0000
committerJulio Merino <jmmv@FreeBSD.org>2014-04-21 21:39:25 +0000
commit38f0b757fd84d17d0fc24739a7cda160c4516d81 (patch)
tree891f0c9897443605b2f8f8e0659b0124e71f8c7f /games
parent236b00df63662264e8ee6d785e14e413740c9ad9 (diff)
downloadsrc-test2-38f0b757fd84d17d0fc24739a7cda160c4516d81.tar.gz
src-test2-38f0b757fd84d17d0fc24739a7cda160c4516d81.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/Makefile10
-rw-r--r--games/tests/Makefile10
2 files changed, 18 insertions, 2 deletions
diff --git a/games/Makefile b/games/Makefile
index 214a394f4495..716a7861db5d 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -1,6 +1,7 @@
-# @(#)Makefile 8.2 (Berkeley) 3/31/94
# $FreeBSD$
+.include <bsd.own.mk>
+
SUBDIR= \
bcd \
caesar \
@@ -12,6 +13,11 @@ SUBDIR= \
pom \
ppt \
primes \
- random
+ random \
+ ${_tests}
+
+.if ${MK_TESTS} != "no"
+_tests= tests
+.endif
.include <bsd.subdir.mk>
diff --git a/games/tests/Makefile b/games/tests/Makefile
new file mode 100644
index 000000000000..45f93d9343bb
--- /dev/null
+++ b/games/tests/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+TESTSDIR= ${TESTSBASE}/games
+
+.PATH: ${.CURDIR:H:H}/tests
+KYUAFILE= yes
+
+.include <bsd.test.mk>