summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/diamond-deps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/diamond-deps.mk')
-rw-r--r--build/pymake/tests/diamond-deps.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/pymake/tests/diamond-deps.mk b/build/pymake/tests/diamond-deps.mk
new file mode 100644
index 000000000..40a4176d9
--- /dev/null
+++ b/build/pymake/tests/diamond-deps.mk
@@ -0,0 +1,13 @@
+# If the dependency graph includes a diamond dependency, we should only remake
+# once!
+
+all: depA depB
+ cat testfile
+ test `cat testfile` = "data";
+ @echo TEST-PASS
+
+depA: testfile
+depB: testfile
+
+testfile:
+ printf "data" >>$@