summaryrefslogtreecommitdiff
path: root/unit-tests/depsrc-end.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/depsrc-end.mk')
-rw-r--r--unit-tests/depsrc-end.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/unit-tests/depsrc-end.mk b/unit-tests/depsrc-end.mk
new file mode 100644
index 000000000000..eb7543d5dfad
--- /dev/null
+++ b/unit-tests/depsrc-end.mk
@@ -0,0 +1,14 @@
+# $NetBSD: depsrc-end.mk,v 1.1 2020/10/23 19:23:01 rillig Exp $
+#
+# Demonstrate the edge case that .BEGIN depends on .END, which sounds a bit
+# paradox but works since these special nodes are not in the dependency
+# hierarchy where the cycles are detected.
+
+.BEGIN:
+ : 'Making ${.TARGET}.'
+.END:
+ : 'Making ${.TARGET}.'
+all:
+ : 'Making ${.TARGET}.'
+
+.BEGIN: .END