1*dba7b0efSSimon J. Gerraty# $NetBSD: opt-touch-jobs.mk,v 1.2 2021/01/30 12:14:08 rillig Exp $ 2e2eeea75SSimon J. Gerraty# 3e2eeea75SSimon J. Gerraty# Tests for the -t command line option in jobs mode. 4e2eeea75SSimon J. Gerraty 5e2eeea75SSimon J. Gerraty.MAKEFLAGS: -j1 6e2eeea75SSimon J. Gerraty.MAKEFLAGS: -t 7e2eeea75SSimon J. Gerraty.MAKEFLAGS: opt-touch-phony 8e2eeea75SSimon J. Gerraty.MAKEFLAGS: opt-touch-join 9e2eeea75SSimon J. Gerraty.MAKEFLAGS: opt-touch-use 10e2eeea75SSimon J. Gerraty.MAKEFLAGS: opt-touch-make 11e2eeea75SSimon J. Gerraty 12*dba7b0efSSimon J. Gerraty# .PHONY targets are not touched since they do not represent actual files. 13*dba7b0efSSimon J. Gerraty# See Job_Touch. 14e2eeea75SSimon J. Gerratyopt-touch-phony: .PHONY 15e2eeea75SSimon J. Gerraty : Making $@. 16e2eeea75SSimon J. Gerraty 17*dba7b0efSSimon J. Gerraty# .JOIN targets are not touched since they do not represent actual files. 18*dba7b0efSSimon J. Gerraty# See Job_Touch. 19e2eeea75SSimon J. Gerratyopt-touch-join: .JOIN 20e2eeea75SSimon J. Gerraty : Making $@. 21e2eeea75SSimon J. Gerraty 22*dba7b0efSSimon J. Gerraty# .USE targets are not touched since they do not represent actual files. 23*dba7b0efSSimon J. Gerraty# See Job_Touch. 24e2eeea75SSimon J. Gerratyopt-touch-use: .USE 25e2eeea75SSimon J. Gerraty : Making use of $@. 26e2eeea75SSimon J. Gerraty 27e2eeea75SSimon J. Gerraty# Even though it is listed last, in the output it appears first. 28e2eeea75SSimon J. Gerraty# This is because it is the only node that actually needs to be run. 29e2eeea75SSimon J. Gerraty# The "is up to date" of the other nodes happens after all jobs have 30e2eeea75SSimon J. Gerraty# finished, by Make_Run > MakePrintStatusList > MakePrintStatus. 31e2eeea75SSimon J. Gerratyopt-touch-make: .MAKE 32e2eeea75SSimon J. Gerraty : Making $@. 33e2eeea75SSimon J. Gerraty 34e2eeea75SSimon J. Gerraty.END: 35e2eeea75SSimon J. Gerraty @files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \ 36e2eeea75SSimon J. Gerraty [ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; } 37