Home | History | Annotate | Line # | Download | only in unit-tests
varname-dot-makeoverrides.mk revision 1.5
      1 # $NetBSD: varname-dot-makeoverrides.mk,v 1.5 2023/02/25 06:54:08 rillig Exp $
      2 #
      3 # Tests for the special .MAKEOVERRIDES variable, which lists the names of the
      4 # variables that are passed on to child processes via the MAKEFLAGS
      5 # environment variable.
      6 #
      7 # See also:
      8 #	varname-dot-makeflags.mk
      9 
     10 all:
     11 	@echo '$@: overrides=<'${.MAKEOVERRIDES:Uundefined:Q}'>'
     12 	${MAKE} -f ${MAKEFILE} stage_1 VAR=value
     13 
     14 stage_1:
     15 	@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
     16 	${MAKE} -f ${MAKEFILE} stage_2
     17 
     18 stage_2:
     19 	@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
     20 	${MAKE} -f ${MAKEFILE} stage_3
     21 
     22 stage_3:
     23 	@echo '$@: overrides=<'${.MAKEOVERRIDES:Q}'>'
     24