0086-rule.sh (237B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2 t? t' EXIT INT TERM QUIT HUP 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat > $tmp2 <<EOF 9 touch t 10 touch t1 11 touch t2 12 EOF 13 14 scc-make -f- <<'EOF' > $tmp1 2>&1 15 all: t1 t2 16 17 t1 t2: t 18 t1 t2 t: 19 touch $@ 20 EOF 21 22 diff $tmp1 $tmp2