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