blob: 966fcb7e0ec9a33799ae52246fc9ea164befcc55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $NetBSD: varname-dot-makeoverrides.mk,v 1.6 2024/05/07 18:26:22 sjg Exp $
#
# Tests for the special .MAKEOVERRIDES variable, which lists the names of the
# variables that are passed on to child processes via the MAKEFLAGS
# environment variable.
#
# See also:
# varname-dot-makeflags.mk
all:
@echo '$@: overrides=<'${.MAKEOVERRIDES:Uundefined:Q}'>'
${MAKE} -f ${MAKEFILE} stage_1 VAR=value
stage_1:
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
${MAKE} -f ${MAKEFILE} stage_2 .VAR=too
stage_2:
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
${MAKE} -f ${MAKEFILE} stage_3
stage_3:
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|