0011-kflag.sh (410B)
1 #!/bin/sh 2 3 trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT HUP TERM 4 5 tmp1=tmp1.$$ 6 tmp2=tmp2.$$ 7 8 cat <<EOF > $tmp2 9 -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 (set -e 18 MAKEFLAGS=-k scc make -f test.mk print-makeflags follow 19 echo fail) 2>&1 | 20 sed 's/:.*: *no-/: no-/' > $tmp1 21 22 diff $tmp1 $tmp2