0097-rule.sh - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
0097-rule.sh (222B)
---
1 #!/bin/sh
2
3 trap 'rm -f f1.? $tmp1' EXIT
4 trap 'exit $?' HUP INT TERM
5
6 tmp1=tmp1.$$
7
8 $EXEC scc make -f- <<'EOF' > $tmp1 2>&1
9 all: f1.o
10
11 f1.o: f1.c
12 touch $@
13
14 f1.c:
15 touch $@
16 EOF
17
18 diff $tmp1 - <<EOF
19 touch f1.c
20 touch f1.o
21 EOF