scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

0081-rule.sh (143B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f f.c f.o f' EXIT INT QUIT TERM HUP
      4 
      5 echo hello > f.c
      6 
      7 scc make -sf- <<'EOF'
      8 .c:
      9 	echo hello > $@
     10 
     11 all: f
     12 EOF
     13 
     14 diff f.c f