diff options
Diffstat (limited to 'unit-tests/opt-keep-going-multiple.mk')
-rw-r--r-- | unit-tests/opt-keep-going-multiple.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/unit-tests/opt-keep-going-multiple.mk b/unit-tests/opt-keep-going-multiple.mk new file mode 100644 index 000000000000..cc08ccfb82c3 --- /dev/null +++ b/unit-tests/opt-keep-going-multiple.mk @@ -0,0 +1,21 @@ +# $NetBSD: opt-keep-going-multiple.mk,v 1.1 2020/12/07 01:32:04 rillig Exp $ +# +# Tests for the -k command line option, which stops building a target as soon +# as an error is detected, but continues building the other, independent +# targets, as far as possible. +# +# Until 2020-12-07, the exit status of make depended only on the last of the +# main targets. Even if the first few targets could not be made, make +# nevertheless exited with status 0. + +.MAKEFLAGS: -k +.MAKEFLAGS: fail1 fail2 succeed + +fail1 fail2: .PHONY + false ${.TARGET} + +succeed: .PHONY + true ${.TARGET} + +.END: + : The end. |