scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3trap 'rm -f $tmp1 t1.c t?.o t2' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7
 8echo Hello > t1.c
 9
10$EXEC scc make -f- <<'EOF' > $tmp1 2>&1
11.c.o:
12	@echo $* > $@
13
14all: t1.o t2.o t2
15	@cat t1.o t2.o t2
16
17t2.o:
18	@echo $* > $@
19
20t2:
21	@echo $* > $@
22EOF
23
24diff $tmp1 - <<EOF
25t1
26t2
27t2
28EOF