summaryrefslogtreecommitdiff
path: root/unit-tests/depsrc-wait.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/depsrc-wait.mk')
-rw-r--r--unit-tests/depsrc-wait.mk23
1 files changed, 18 insertions, 5 deletions
diff --git a/unit-tests/depsrc-wait.mk b/unit-tests/depsrc-wait.mk
index bdf3be4608bba..95b0ea96e0a53 100644
--- a/unit-tests/depsrc-wait.mk
+++ b/unit-tests/depsrc-wait.mk
@@ -1,8 +1,21 @@
-# $NetBSD: depsrc-wait.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: depsrc-wait.mk,v 1.3 2020/09/07 18:40:32 rillig Exp $
#
-# Tests for the special source .WAIT in dependency declarations.
+# 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.
-# TODO: Implementation
+# 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
-all:
- @:;
+# 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