NetBSD/usr.bin/make/unit-tests/include-subsub.mk
rillig 118ec9dfc5 make(1): add test for .INCLUDEDFILE combined with .for loops
The .for loops are implemented as a special kind of .include, therefore
they affect the .INCLUDEDFROM variable.
2020-09-05 18:13:47 +00:00

8 lines
190 B
Makefile

# $NetBSD: include-subsub.mk,v 1.3 2020/09/05 18:13:47 rillig Exp $
.if ${.INCLUDEDFROMFILE} == "include-sub.mk"
. info subsub-ok
.else
. warning subsub-fail(${.INCLUDEDFROMFILE})
.endif