tests/make: Add 0085-rule test - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f1454a93302482b594c7f97faab389ed1437dea8
 (DIR) parent d0fb80726024f3921651e219456375bbdef5cfab
 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Sun, 21 Jan 2024 00:10:31 +0100
       
       tests/make: Add 0085-rule test
       
       Diffstat:
         A tests/make/execute/0085-rule.sh     |      30 ++++++++++++++++++++++++++++++
       
       1 file changed, 30 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/tests/make/execute/0085-rule.sh b/tests/make/execute/0085-rule.sh
       @@ -0,0 +1,30 @@
       +#!/bin/sh
       +
       +trap 'rm -f $tmp1 $tmp2 t1.c t?.o t2' EXIT INT TERM HUP QUIT
       +
       +tmp1=tmp1.$$
       +tmp2=tmp2.$$
       +
       +cat > $tmp2 <<EOF
       +t1
       +t2
       +t2
       +EOF
       +
       +echo Hello > t1.c
       +
       +scc-make -f- <<'EOF' > $tmp1 2>&1
       +.c.o:
       +        @echo $* > $@
       +
       +all: t1.o t2.o t2
       +        @cat t1.o t2.o t2
       +
       +t2.o:
       +        @echo $* > $@
       +
       +t2:
       +        @echo $* > $@
       +EOF
       +
       +diff $tmp1 $tmp2