Home | History | Annotate | Line # | Download | only in make
Makefile revision 1.2
      1  1.2     apb # $NetBSD: Makefile,v 1.2 2014/08/22 16:45:32 apb 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.2     apb DISTFILES!=	(cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.exp)
     29  1.2     apb 
     30  1.2     apb # Instruct bsd.files.mk to make the copies
     31  1.2     apb .for f in ${DISTFILES}
     32  1.2     apb _file := ${UNIT_TESTS_DISTDIR}/${f}
     33  1.2     apb FILES+= ${UNIT_TESTS_DISTDIR}/${f}
     34  1.2     apb FILESNAME_${_file} := ${_file:T}
     35  1.2     apb FILESDIR_${_file} := ${UNIT_TESTS_DIR}
     36  1.2     apb .endfor
     37  1.1  jruoho 
     38  1.1  jruoho .include <bsd.test.mk>
     39