2023-04-24 23:44:30 +00:00
|
|
|
# $NetBSD: varname-dot-makeoverrides.mk,v 1.5 2023/02/25 06:54:08 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
2023-04-24 23:44:30 +00:00
|
|
|
# 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
|
2020-09-05 16:11:04 +00:00
|
|
|
|
|
|
|
all:
|
2023-04-24 23:44:30 +00:00
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Uundefined:Q}'>'
|
|
|
|
${MAKE} -f ${MAKEFILE} stage_1 VAR=value
|
|
|
|
|
|
|
|
stage_1:
|
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|
|
|
|
${MAKE} -f ${MAKEFILE} stage_2
|
|
|
|
|
|
|
|
stage_2:
|
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|
|
|
|
${MAKE} -f ${MAKEFILE} stage_3
|
|
|
|
|
|
|
|
stage_3:
|
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|