xref: /freebsd/contrib/bmake/unit-tests/varname-dot-includes.mk (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# $NetBSD: varname-dot-includes.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
2#
3# Tests for the special .INCLUDES variable, which is not documented in the
4# manual page.
5#
6# It is yet unclear in which situations this feature is useful.
7
8.SUFFIXES: .h
9
10.PATH.h: . ..
11
12.INCLUDES: .h
13
14# The .INCLUDES variable is not yet available.
15.if defined(.INCLUDES)
16.  error
17.endif
18
19all:
20	@echo .INCLUDES=${.INCLUDES:Q}
21