Makefile revision 1.2
11.2Sapb# $NetBSD: Makefile,v 1.2 2014/08/22 16:45:32 apb Exp $ 21.2Sapb 31.2Sapb# The tests for make(1) are maintained in src/usr.bin/make/unit-tests 41.2Sapb# (UNIT_TESTS_DISTDIR). We copy them verbatim to ${FILESDIR}/unit-tests 51.2Sapb# (UNIT_TESTS_DIR) at install time. 61.2Sapb# 71.2Sapb# The t_make .sh script (installed as ${FILESDIR}/t_make) is the only 81.2Sapb# thing that knows about Atf. At run time, the t_make simply invokes 91.2Sapb# the Makefile in UNIT_TESTS_DIR for each test. 101.1Sjruoho 111.1SjruohoNOMAN= # defined 121.1Sjruoho 131.1Sjruoho.include <bsd.own.mk> 141.1Sjruoho 151.1SjruohoTESTSDIR= ${TESTSBASE}/usr.bin/make 161.1Sjruoho 171.1SjruohoTESTS_SH= t_make 181.1Sjruoho 191.1SjruohoFILESDIR= ${TESTSDIR} 201.2Sapb 211.2Sapb# Where we install the copies of the files for the tests 221.2SapbUNIT_TESTS_DIR= ${FILESDIR}/unit-tests 231.2Sapb 241.2Sapb# Where we obtain the original files for the tests 251.2SapbUNIT_TESTS_DISTDIR= ${NETBSDSRCDIR}/usr.bin/make/unit-tests 261.2Sapb 271.2Sapb# Which original files to copy 281.2SapbDISTFILES!= (cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.exp) 291.2Sapb 301.2Sapb# Instruct bsd.files.mk to make the copies 311.2Sapb.for f in ${DISTFILES} 321.2Sapb_file := ${UNIT_TESTS_DISTDIR}/${f} 331.2SapbFILES+= ${UNIT_TESTS_DISTDIR}/${f} 341.2SapbFILESNAME_${_file} := ${_file:T} 351.2SapbFILESDIR_${_file} := ${UNIT_TESTS_DIR} 361.2Sapb.endfor 371.1Sjruoho 381.1Sjruoho.include <bsd.test.mk> 39