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' EXIT
 4trap 'exit $?' HUP INT TERM
 5
 6tmp1=tmp1.$$
 7
 8$EXEC scc make -f- <<'EOF' > $tmp1 2>&1
 9VAR =\
10        all\
11        f1\
12        f2\
13
14OBJS = f.$O
15
16O = e
17
18$(VAR) all : $(OBJS)
19	@echo done
20
21f.$O:
22	@echo yeah!
23EOF
24
25diff $tmp1 - <<EOF
26yeah!
27done
28EOF