1*1d3f2ddcSSimon J. Gerraty# $NetBSD: depsrc-meta.mk,v 1.7 2022/03/02 19:32:15 sjg Exp $ 22c3632d1SSimon J. Gerraty# 32c3632d1SSimon J. Gerraty# Tests for the special source .META in dependency declarations. 42c3632d1SSimon J. Gerraty 52c3632d1SSimon J. Gerraty# TODO: Implementation 606b9b3e0SSimon J. Gerraty# TODO: Explanation 706b9b3e0SSimon J. Gerraty 89f45a3c8SSimon J. Gerraty.MAIN: all 906b9b3e0SSimon J. Gerraty 109f45a3c8SSimon J. Gerraty.if make(actual-test) 1106b9b3e0SSimon J. Gerraty.MAKEFLAGS: -dM 12*1d3f2ddcSSimon J. Gerraty.MAKE.MODE= meta curDirOk=true nofilemon 139f45a3c8SSimon J. Gerraty.endif 1406b9b3e0SSimon J. Gerraty 1506b9b3e0SSimon J. Gerratyactual-test: depsrc-meta-target 1606b9b3e0SSimon J. Gerratydepsrc-meta-target: .META 1706b9b3e0SSimon J. Gerraty @> ${.TARGET}-file 1806b9b3e0SSimon J. Gerraty @rm -f ${.TARGET}-file 1906b9b3e0SSimon J. Gerraty 2006b9b3e0SSimon J. Gerratycheck-results: 219f45a3c8SSimon J. Gerraty @echo 'Targets from meta mode${.MAKE.JOBS:D in jobs mode}:' 2206b9b3e0SSimon J. Gerraty @awk '/^TARGET/ { print "| " $$0 }' depsrc-meta-target.meta 2306b9b3e0SSimon J. Gerraty @rm depsrc-meta-target.meta 2406b9b3e0SSimon J. Gerraty 252c3632d1SSimon J. Gerratyall: 269f45a3c8SSimon J. Gerraty @${MAKE} -r -f ${MAKEFILE} actual-test 279f45a3c8SSimon J. Gerraty @${MAKE} -r -f ${MAKEFILE} check-results 2806b9b3e0SSimon J. Gerraty 299f45a3c8SSimon J. Gerraty @${MAKE} -r -f ${MAKEFILE} actual-test -j1 309f45a3c8SSimon J. Gerraty @${MAKE} -r -f ${MAKEFILE} check-results -j1 31