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 $?' INT TERM HUP
 5
 6tmp1=tmp1.$$
 7
 8$EXEC scc make -f - <<'EOF' > $tmp1 2>&1
 9all: target1
10
11target1: target2
12	@echo target1
13
14target2: target3
15	@echo target2
16
17target3: target1
18	@echo target3
19EOF
20
21diff $tmp1  - <<EOF
22make: warning: <stdin>:11: circular dependency target3 <- target1 dropped
23target3
24target2
25target1
26EOF