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