summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/depsrc-wait.mk
blob: 95b0ea96e0a53c1ba730c659b06b140e86e6e069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $NetBSD: depsrc-wait.mk,v 1.3 2020/09/07 18:40:32 rillig Exp $
#
# Tests for the special source .WAIT in dependency declarations,
# which adds a sequence point between the nodes to its left and the nodes
# to its right.

# Even though the build could run massively parallel, the .WAIT imposes a
# strict ordering in this example, which forces the targets to be made in
# exactly this order.
.MAKEFLAGS: -j8

# This is the example from the manual page.
.PHONY: x a b b1
x: a .WAIT b
	echo x
a:
	echo a
b: b1
	echo b
b1:
	echo b1