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