scc

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

commit f4623582a14fc328f981ba2c31437048fd24c7e3
parent 94e1a7cda3c8cc1e8c2c28ebdbbe090a85a3c863
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 18:39:23 +0100

tests/make: Add 0063-macro test

Diffstat:
Atests/make/execute/0063-macro.sh | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0063-macro.sh b/tests/make/execute/0063-macro.sh @@ -0,0 +1,19 @@ +#!/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 +TARGET = print + +all: $(TARGET) + +print: + @echo Hello World! +EOF + +diff $tmp1 $tmp2