xref: /freebsd/contrib/bmake/unit-tests/varname-dot-includes.mk (revision 956e45f6fb3e18b8e89b1341708db60c30bb9f27)
1*956e45f6SSimon J. Gerraty# $NetBSD: varname-dot-includes.mk,v 1.2 2020/09/13 16:53:19 rillig Exp $
22c3632d1SSimon J. Gerraty#
32c3632d1SSimon J. Gerraty# Tests for the special .INCLUDES variable, which is not documented in the
42c3632d1SSimon J. Gerraty# manual page.
52c3632d1SSimon J. Gerraty#
62c3632d1SSimon J. Gerraty# It is yet unclear in which situations this feature is useful.
72c3632d1SSimon J. Gerraty
82c3632d1SSimon J. Gerraty.SUFFIXES: .h
92c3632d1SSimon J. Gerraty
102c3632d1SSimon J. Gerraty.PATH.h: . ..
112c3632d1SSimon J. Gerraty
122c3632d1SSimon J. Gerraty.INCLUDES: .h
132c3632d1SSimon J. Gerraty
142c3632d1SSimon J. Gerraty# The .INCLUDES variable is not yet available.
15*956e45f6SSimon J. Gerraty.if defined(.INCLUDES)
162c3632d1SSimon J. Gerraty.  error
172c3632d1SSimon J. Gerraty.endif
182c3632d1SSimon J. Gerraty
192c3632d1SSimon J. Gerratyall:
202c3632d1SSimon J. Gerraty	@echo .INCLUDES=${.INCLUDES:Q}
21