0080-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
       ---
       0080-rule.sh (179B)
       ---
            1 #!/bin/sh
            2 
            3 trap 'rm -f $tmp f.c f.o f' EXIT INT QUIT TERM HUP
            4 
            5 tmp=tmp.$$
            6 
            7 echo hello > $tmp
            8 
            9 echo hello > f.c
           10 
           11 scc make -sf- <<'EOF'
           12 .c.o:
           13         cp $< $@
           14 
           15 all: f.o
           16 EOF
           17 
           18 diff $tmp f.o