2023-02-25 03:09:52 +03:00
|
|
|
# $NetBSD: varname-dot-makeoverrides.mk,v 1.4 2023/02/25 00:09:52 rillig Exp $
|
2020-08-16 15:07:50 +03:00
|
|
|
#
|
2023-02-15 09:52:58 +03:00
|
|
|
# Tests for the special .MAKEOVERRIDES variable.
|
2020-08-16 15:07:50 +03:00
|
|
|
|
|
|
|
all:
|
2023-02-25 03:09:52 +03:00
|
|
|
@${MAKE} -r -f ${MAKEFILE} dollars_stage_1
|
|
|
|
|
|
|
|
# Demonstrate that '$' characters are altered when they are passed on to child
|
|
|
|
# make processes via .MAKEOVERRIDES and MAKEFLAGS.
|
|
|
|
dollars_stage_1:
|
|
|
|
${MAKE} -r -f ${MAKEFILE} dollars_stage_2 DOLLARS='$$$${varname}'
|
|
|
|
|
|
|
|
dollars_stage_2:
|
|
|
|
@echo 'stage 2: dollars=<${DOLLARS}>'
|
|
|
|
${MAKE} -r -f ${MAKEFILE} dollars_stage_3
|
|
|
|
|
|
|
|
dollars_stage_3:
|
|
|
|
@echo 'stage 3: dollars=<${DOLLARS}>'
|