0010-kflag.sh - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
0010-kflag.sh (397B)
---
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 scc make -kf test.mk print-makeflags follow
19 echo fail) 2>&1 |
20 sed 's/:.*: *no-/: no-/' > $tmp1
21
22 diff $tmp1 $tmp2