scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 8dad143cff0c2b928a9a95791cfab71b16535400
parent 96bd13ad1fb4f39adf5a1ce95d0f8fb26936cb79
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 31 Oct 2024 16:20:35 +0100

tests/make: Improve 0094-expansion

Test expansions with braces too.

Diffstat:
Mtests/make/execute/0094-expansion.sh | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0094-expansion.sh b/tests/make/execute/0094-expansion.sh @@ -35,5 +35,24 @@ all: @echo $(SRC) @echo $(@:=) EOF +diff $tmp1 $tmp2 +scc-make -f- <<'EOF' > $tmp2 2>&1 +O = o +SRC = file1.c file2.c +OBJ = ${SRC:.c=.$O} +O = e +C = c + +all: + @echo ${SRC:.c=.o} + @echo ${@} + @echo ${@:l=p} + @echo ${@:=.o} + @echo ${OBJ:.$O=.$C} + @echo ${OBJ:.$O=} + @echo ${OBJ} + @echo ${SRC} + @echo ${@:=} +EOF diff $tmp1 $tmp2