diff options
Diffstat (limited to 'unit-tests/varname-dot-includes.mk')
| -rwxr-xr-x | unit-tests/varname-dot-includes.mk | 20 |
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} |
