xref: /minix3/tests/usr.bin/make/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1# $NetBSD: Makefile,v 1.2 2014/08/22 16:45:32 apb Exp $
2
3# The tests for make(1) are maintained in src/usr.bin/make/unit-tests
4# (UNIT_TESTS_DISTDIR).  We copy them verbatim to ${FILESDIR}/unit-tests
5# (UNIT_TESTS_DIR) at install time.
6#
7# The t_make .sh script (installed as ${FILESDIR}/t_make) is the only
8# thing that knows about Atf.  At run time, the t_make simply invokes
9# the Makefile in UNIT_TESTS_DIR for each test.
10
11NOMAN=			# defined
12
13.include <bsd.own.mk>
14
15TESTSDIR=		${TESTSBASE}/usr.bin/make
16
17TESTS_SH=		t_make
18
19FILESDIR=		${TESTSDIR}
20
21# Where we install the copies of the files for the tests
22UNIT_TESTS_DIR=		${FILESDIR}/unit-tests
23
24# Where we obtain the original files for the tests
25UNIT_TESTS_DISTDIR=	${NETBSDSRCDIR}/usr.bin/make/unit-tests
26
27# Which original files to copy
28DISTFILES!=	(cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.exp)
29
30# Instruct bsd.files.mk to make the copies
31.for f in ${DISTFILES}
32_file := ${UNIT_TESTS_DISTDIR}/${f}
33FILES+= ${UNIT_TESTS_DISTDIR}/${f}
34FILESNAME_${_file} := ${_file:T}
35FILESDIR_${_file} := ${UNIT_TESTS_DIR}
36.endfor
37
38.include <bsd.test.mk>
39