scc

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

0080-rule.sh (194B)


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