2021-02-11 01:51:11 +00:00
|
|
|
# $NetBSD: opt-touch-jobs.mk,v 1.2 2021/01/30 12:14:08 rillig Exp $
|
2020-11-20 03:54:37 +00:00
|
|
|
#
|
|
|
|
# Tests for the -t command line option in jobs mode.
|
|
|
|
|
|
|
|
.MAKEFLAGS: -j1
|
|
|
|
.MAKEFLAGS: -t
|
|
|
|
.MAKEFLAGS: opt-touch-phony
|
|
|
|
.MAKEFLAGS: opt-touch-join
|
|
|
|
.MAKEFLAGS: opt-touch-use
|
|
|
|
.MAKEFLAGS: opt-touch-make
|
|
|
|
|
2021-02-11 01:51:11 +00:00
|
|
|
# .PHONY targets are not touched since they do not represent actual files.
|
|
|
|
# See Job_Touch.
|
2020-11-20 03:54:37 +00:00
|
|
|
opt-touch-phony: .PHONY
|
|
|
|
: Making $@.
|
|
|
|
|
2021-02-11 01:51:11 +00:00
|
|
|
# .JOIN targets are not touched since they do not represent actual files.
|
|
|
|
# See Job_Touch.
|
2020-11-20 03:54:37 +00:00
|
|
|
opt-touch-join: .JOIN
|
|
|
|
: Making $@.
|
|
|
|
|
2021-02-11 01:51:11 +00:00
|
|
|
# .USE targets are not touched since they do not represent actual files.
|
|
|
|
# See Job_Touch.
|
2020-11-20 03:54:37 +00:00
|
|
|
opt-touch-use: .USE
|
|
|
|
: Making use of $@.
|
|
|
|
|
|
|
|
# Even though it is listed last, in the output it appears first.
|
|
|
|
# This is because it is the only node that actually needs to be run.
|
|
|
|
# The "is up to date" of the other nodes happens after all jobs have
|
|
|
|
# finished, by Make_Run > MakePrintStatusList > MakePrintStatus.
|
|
|
|
opt-touch-make: .MAKE
|
|
|
|
: Making $@.
|
|
|
|
|
|
|
|
.END:
|
|
|
|
@files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \
|
|
|
|
[ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; }
|