summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/doublecolon-priordeps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/doublecolon-priordeps.mk')
-rw-r--r--build/pymake/tests/doublecolon-priordeps.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/build/pymake/tests/doublecolon-priordeps.mk b/build/pymake/tests/doublecolon-priordeps.mk
new file mode 100644
index 000000000..6cdf3a8e7
--- /dev/null
+++ b/build/pymake/tests/doublecolon-priordeps.mk
@@ -0,0 +1,19 @@
+#T commandline: ['-j3']
+
+# All *prior* dependencies of a doublecolon rule must be satisfied before
+# subsequent commands are run.
+
+all:: target1
+
+all:: target2
+ test -f target1
+ @echo TEST-PASS
+
+target1:
+ touch starting-$@
+ sleep 1
+ touch $@
+
+target2:
+ sleep 0.1
+ test -f starting-target1