2024-05-07 21:26:22 +03:00
|
|
|
# $NetBSD: varname-dot-makeoverrides.mk,v 1.6 2024/05/07 18:26:22 sjg Exp $
|
2020-08-16 15:07:50 +03:00
|
|
|
#
|
2023-02-25 09:54:08 +03: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-08-16 15:07:50 +03:00
|
|
|
|
|
|
|
all:
|
2023-02-25 09:54:08 +03:00
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Uundefined:Q}'>'
|
|
|
|
${MAKE} -f ${MAKEFILE} stage_1 VAR=value
|
2023-02-25 03:09:52 +03:00
|
|
|
|
2023-02-25 09:54:08 +03:00
|
|
|
stage_1:
|
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|
2024-05-07 21:26:22 +03:00
|
|
|
${MAKE} -f ${MAKEFILE} stage_2 .VAR=too
|
2023-02-25 03:09:52 +03:00
|
|
|
|
2023-02-25 09:54:08 +03:00
|
|
|
stage_2:
|
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|
|
|
|
${MAKE} -f ${MAKEFILE} stage_3
|
2023-02-25 03:09:52 +03:00
|
|
|
|
2023-02-25 09:54:08 +03:00
|
|
|
stage_3:
|
|
|
|
@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
|