scc

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

commit 0611dbfed3db8f3829c2e45e3c747a898cf4de63
parent a4bb92d0a14f388346191cded3f8b01566d653a8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 21 Jan 2024 00:08:57 +0100

tests/make: Add 0082-rule test

Diffstat:
Atests/make/execute/0082-rule.sh | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0082-rule.sh b/tests/make/execute/0082-rule.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2 f.c f.o f' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo hello > f.c + +cat > $tmp2 <<EOF +make: error: don't know how to make f +EOF + +scc-make -sf- <<'EOF' > $tmp1 2>&1 + +.SUFFIXES: + +.c: + echo hello > $@ + +all: f +EOF + +diff $tmp1 $tmp2