scc

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

0023-Sflag.sh (392B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP
      4 
      5 tmp1=tmp1.$$
      6 tmp2=tmp2.$$
      7 
      8 cat > $tmp2 <<EOF
      9 -S -k
     10 no-valid-program
     11 sh: no-valid-program: not found
     12 make: warning: target error: error 32512
     13 Hello World!
     14 make: warning: target follow not remade because of errors
     15 EOF
     16 
     17 MAKEFLAGS=-S scc-make -kf test.mk print-makeflags follow 2>&1 |
     18 sed 's/:.*: *no-/: no-/' > $tmp1
     19 
     20 diff $tmp1 $tmp2