summaryrefslogtreecommitdiffstats
path: root/build/pymake/tests/matchany2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/matchany2.mk')
-rw-r--r--build/pymake/tests/matchany2.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/pymake/tests/matchany2.mk b/build/pymake/tests/matchany2.mk
new file mode 100644
index 000000000..d21d9702c
--- /dev/null
+++ b/build/pymake/tests/matchany2.mk
@@ -0,0 +1,13 @@
+# we should succeed in making foo.ooo from foo.ooo.test
+all: foo.ooo
+ @echo TEST-PASS
+
+%.ooo: %.ccc
+ exit 1
+
+# this match-anything rule is terminal, and therefore applies
+%:: %.test
+ cp $< $@
+
+foo.ooo.test:
+ touch $@