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