xref: /freebsd/contrib/bmake/unit-tests/varname-dot-includes.mk (revision 96474d2a3fa895fb9636183403fc8ca7ccf60216)
1# $NetBSD: varname-dot-includes.mk,v 1.1 2020/08/28 03:51:06 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:Q})
16.error
17.endif
18
19all:
20	@echo .INCLUDES=${.INCLUDES:Q}
21