scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | 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