summaryrefslogtreecommitdiff
path: root/unit-tests/varname-dot-includes.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/varname-dot-includes.mk')
-rwxr-xr-xunit-tests/varname-dot-includes.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/unit-tests/varname-dot-includes.mk b/unit-tests/varname-dot-includes.mk
new file mode 100755
index 0000000000000..33e8669c27be3
--- /dev/null
+++ b/unit-tests/varname-dot-includes.mk
@@ -0,0 +1,20 @@
+# $NetBSD: varname-dot-includes.mk,v 1.1 2020/08/28 03:51:06 rillig Exp $
+#
+# Tests for the special .INCLUDES variable, which is not documented in the
+# manual page.
+#
+# It is yet unclear in which situations this feature is useful.
+
+.SUFFIXES: .h
+
+.PATH.h: . ..
+
+.INCLUDES: .h
+
+# The .INCLUDES variable is not yet available.
+.if defined(${.INCLUDES:Q})
+.error
+.endif
+
+all:
+ @echo .INCLUDES=${.INCLUDES:Q}