commit 20ac64057b98721b685c551a0b4343191a8a5fe5 parent 790a44a0a3092a081bc7284646652a91e8641069 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Fri, 19 Jan 2024 18:46:23 +0100 tests/make: Add 0066-macro Diffstat:
A | tests/make/execute/0066-macro.sh | | | 21 | +++++++++++++++++++++ |
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/tests/make/execute/0066-macro.sh b/tests/make/execute/0066-macro.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World!> $tmp2 + +scc-make -f- all <<'EOF' > $tmp1 2>&1 +VAR2 = one +VAR = $(VAR2) +VAR2 = three + +all: + @echo Hello $(VAR)! + +VAR2 = World +EOF + +diff $tmp1 $tmp2