]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/opt-touch-jobs.mk
Merge bmake-20201117
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / opt-touch-jobs.mk
1 # $NetBSD: opt-touch-jobs.mk,v 1.1 2020/11/14 15:35:20 rillig Exp $
2 #
3 # Tests for the -t command line option in jobs mode.
4
5 .MAKEFLAGS: -j1
6 .MAKEFLAGS: -t
7 .MAKEFLAGS: opt-touch-phony
8 .MAKEFLAGS: opt-touch-join
9 .MAKEFLAGS: opt-touch-use
10 .MAKEFLAGS: opt-touch-make
11
12 opt-touch-phony: .PHONY
13         : Making $@.
14
15 opt-touch-join: .JOIN
16         : Making $@.
17
18 opt-touch-use: .USE
19         : Making use of $@.
20
21 # Even though it is listed last, in the output it appears first.
22 # This is because it is the only node that actually needs to be run.
23 # The "is up to date" of the other nodes happens after all jobs have
24 # finished, by Make_Run > MakePrintStatusList > MakePrintStatus.
25 opt-touch-make: .MAKE
26         : Making $@.
27
28 .END:
29         @files=$$(ls opt-touch-* 2>/dev/null | grep -v -e '\.' -e '\*'); \
30         [ -z "$$files" ] || { echo "created files: $$files" 1>&2; exit 1; }