]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/depsrc-wait.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / depsrc-wait.mk
1 # $NetBSD: depsrc-wait.mk,v 1.3 2020/09/07 18:40:32 rillig Exp $
2 #
3 # Tests for the special source .WAIT in dependency declarations,
4 # which adds a sequence point between the nodes to its left and the nodes
5 # to its right.
6
7 # Even though the build could run massively parallel, the .WAIT imposes a
8 # strict ordering in this example, which forces the targets to be made in
9 # exactly this order.
10 .MAKEFLAGS: -j8
11
12 # This is the example from the manual page.
13 .PHONY: x a b b1
14 x: a .WAIT b
15         echo x
16 a:
17         echo a
18 b: b1
19         echo b
20 b1:
21         echo b1