atf.test.mk (267181) | atf.test.mk (268445) |
---|---|
1# $FreeBSD: head/share/mk/atf.test.mk 267181 2014-06-06 18:58:06Z jmmv $ | 1# $FreeBSD: head/share/mk/atf.test.mk 268445 2014-07-09 00:55:50Z jmmv $ |
2# 3# You must include bsd.test.mk instead of this file from your Makefile. 4# 5# Logic to build and install ATF test programs; i.e. test programs linked 6# against the ATF libraries. 7 8.if !target(__<bsd.test.mk>__) 9.error atf.test.mk cannot be included directly. --- 90 unchanged lines hidden (view full) --- 100CLEANFILES+= ${_T} ${_T}.tmp 101# TODO(jmmv): It seems to me that this SED and SRC functionality should 102# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if 103# this proves to be useful within the tests. 104ATF_TESTS_SH_SED_${_T}?= # empty 105ATF_TESTS_SH_SRC_${_T}?= ${_T}.sh 106${_T}: ${ATF_TESTS_SH_SRC_${_T}} 107 echo '#! /usr/libexec/atf-sh' > ${.TARGET}.tmp | 2# 3# You must include bsd.test.mk instead of this file from your Makefile. 4# 5# Logic to build and install ATF test programs; i.e. test programs linked 6# against the ATF libraries. 7 8.if !target(__<bsd.test.mk>__) 9.error atf.test.mk cannot be included directly. --- 90 unchanged lines hidden (view full) --- 100CLEANFILES+= ${_T} ${_T}.tmp 101# TODO(jmmv): It seems to me that this SED and SRC functionality should 102# exist in bsd.prog.mk along the support for SCRIPTS. Move it there if 103# this proves to be useful within the tests. 104ATF_TESTS_SH_SED_${_T}?= # empty 105ATF_TESTS_SH_SRC_${_T}?= ${_T}.sh 106${_T}: ${ATF_TESTS_SH_SRC_${_T}} 107 echo '#! /usr/libexec/atf-sh' > ${.TARGET}.tmp |
108 cat ${.ALLSRC} | sed ${ATF_TESTS_SH_SED_${_T}} >>${.TARGET}.tmp | 108 cat ${.ALLSRC:N*Makefile*} \ 109 | sed ${ATF_TESTS_SH_SED_${_T}} >>${.TARGET}.tmp |
109 chmod +x ${.TARGET}.tmp 110 mv ${.TARGET}.tmp ${.TARGET} 111.endfor 112.endif 113 114.if ${ALLOW_DEPRECATED_ATF_TOOLS} != "no" 115 116.if ${ATFFILE:tl} != "no" --- 60 unchanged lines hidden --- | 110 chmod +x ${.TARGET}.tmp 111 mv ${.TARGET}.tmp ${.TARGET} 112.endfor 113.endif 114 115.if ${ALLOW_DEPRECATED_ATF_TOOLS} != "no" 116 117.if ${ATFFILE:tl} != "no" --- 60 unchanged lines hidden --- |