xref: /freebsd/contrib/bmake/unit-tests/depsrc-wait.mk (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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
14x: a .WAIT b
15	echo x
16a:
17	echo a
18b: b1
19	echo b
20b1:
21	echo b1
22