summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-09 02:29:38 +0000
committerngie <ngie@FreeBSD.org>2015-11-09 02:29:38 +0000
commit49850d4b70492ce8bdb6e2126891c1ce23505784 (patch)
tree2059057de603fe03f09bcb53393d0861c3e4084d /cddl
parent9c076bb65e85c41bb1e948e720d8a8da87b291be (diff)
downloadFreeBSD-src-49850d4b70492ce8bdb6e2126891c1ce23505784.zip
FreeBSD-src-49850d4b70492ce8bdb6e2126891c1ce23505784.tar.gz
Reduce the Makefile snippet complexity a bit
- Set BINDIR to TESTSDIR globally (and subsequently, remove all `${FILESGROUP}DIR` setting because BINDIR is set to `TESTSDIR`) - Set MAN to "" globally, instead of per-PROG MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'cddl')
-rw-r--r--cddl/usr.sbin/dtrace/tests/Makefile.inc18
1 files changed, 3 insertions, 5 deletions
diff --git a/cddl/usr.sbin/dtrace/tests/Makefile.inc1 b/cddl/usr.sbin/dtrace/tests/Makefile.inc1
index 6e7cc07..0c528ef 100644
--- a/cddl/usr.sbin/dtrace/tests/Makefile.inc1
+++ b/cddl/usr.sbin/dtrace/tests/Makefile.inc1
@@ -10,9 +10,6 @@ ${TESTGROUP}= ${TESTFILES}
${TESTGROUP}EXE= ${TESTEXES}
${TESTGROUP}EXEMODE= 0555
-${TESTGROUP}DIR= ${TESTSDIR}
-${TESTGROUP}EXEDIR= ${TESTSDIR}
-
TESTWRAPPER= t_dtrace_contrib
ATF_TESTS_SH+= ${TESTWRAPPER}
TEST_METADATA.t_dtrace_contrib+= required_files="/usr/local/bin/ksh"
@@ -30,14 +27,15 @@ CLEANFILES+= ${TESTWRAPPER}.sh
PROGS= ${CFILES:T:S/.c$/.exe/g}
.for prog in ${PROGS}
SRCS.${prog}+= ${prog:S/.exe$/.c/}
-BINDIR.${prog}= ${TESTSDIR}
-MAN.${prog}=
.if exists(${prog:S/^tst.//:S/.exe$/.d/})
SRCS.${prog}+= ${prog:S/^tst.//:S/.exe$/.d/}
.endif
.endfor
+BINDIR= ${TESTSDIR}
+MAN=
+
# Some tests depend on the internals of their corresponding test programs,
# so make sure the optimizer doesn't interfere with them.
CFLAGS+= -O0
OpenPOWER on IntegriCloud