NetBSD/usr.bin/make/unit-tests/varname-dot-includes.mk
rillig 01c30ad099 make(1): fix tests for .INCLUDES and .LIBS
Found by an early draft of a refactoring of Var_Parse to properly report
errors.
2020-09-13 16:53:19 +00:00

21 lines
402 B
Makefile

# $NetBSD: varname-dot-includes.mk,v 1.2 2020/09/13 16:53:19 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)
. error
.endif
all:
@echo .INCLUDES=${.INCLUDES:Q}