scc

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

0001-macro.sh (276B)


      1 #!/bin/sh
      2 
      3 trap 'rm -f $tmp1' EXIT
      4 trap 'exit $?' INT TERM HUP
      5 
      6 tmp1=tmp1.$$
      7 
      8 $EXEC scc make -f - <<'EOF' > $tmp1 2>&1
      9 FLAGS=Hello $(EFLAGS)
     10 all: $(DIRS)
     11 	@echo Hello World
     12 
     13 $(DIRS): FORCE
     14 	@echo Bye
     15 
     16 FORCE:
     17 EOF
     18 
     19 diff $tmp1  - <<EOF
     20 make: error: <stdin>:5: missing target
     21 EOF