xref: /freebsd/contrib/bmake/unit-tests/varname-dot-makeoverrides.mk (revision c9f4001f81c4d5778f70f77dc9892d1c4ecfdcdb)
1*c9f4001fSSimon J. Gerraty# $NetBSD: varname-dot-makeoverrides.mk,v 1.6 2024/05/07 18:26:22 sjg Exp $
22c3632d1SSimon J. Gerraty#
38c973ee2SSimon J. Gerraty# Tests for the special .MAKEOVERRIDES variable, which lists the names of the
48c973ee2SSimon J. Gerraty# variables that are passed on to child processes via the MAKEFLAGS
58c973ee2SSimon J. Gerraty# environment variable.
68c973ee2SSimon J. Gerraty#
78c973ee2SSimon J. Gerraty# See also:
88c973ee2SSimon J. Gerraty#	varname-dot-makeflags.mk
92c3632d1SSimon J. Gerraty
102c3632d1SSimon J. Gerratyall:
118c973ee2SSimon J. Gerraty	@echo '$@: overrides=<'${.MAKEOVERRIDES:Uundefined:Q}'>'
128c973ee2SSimon J. Gerraty	${MAKE} -f ${MAKEFILE} stage_1 VAR=value
138c973ee2SSimon J. Gerraty
148c973ee2SSimon J. Gerratystage_1:
158c973ee2SSimon J. Gerraty	@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
16*c9f4001fSSimon J. Gerraty	${MAKE} -f ${MAKEFILE} stage_2 .VAR=too
178c973ee2SSimon J. Gerraty
188c973ee2SSimon J. Gerratystage_2:
198c973ee2SSimon J. Gerraty	@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
208c973ee2SSimon J. Gerraty	${MAKE} -f ${MAKEFILE} stage_3
218c973ee2SSimon J. Gerraty
228c973ee2SSimon J. Gerratystage_3:
238c973ee2SSimon J. Gerraty	@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
24