scc

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

0040-makefile.sh (247B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f $tmp1 $tmp2 makefile' EXIT INT QUIT TERM HUP
      4 
      5 tmp1=tmp1.$$
      6 tmp2=tmp2.$$
      7 
      8 cat > makefile <<EOF
      9 hello:
     10 	@echo Hello World!, makefile!
     11 EOF
     12 
     13 cat > $tmp2 <<EOF
     14 Hello World!, makefile!
     15 EOF
     16 
     17 scc make > $tmp1 2>&1
     18 
     19 diff $tmp1 $tmp2