1 # $NetBSD: opt-keep-going-multiple.mk,v 1.1 2020/12/07 01:32:04 rillig Exp $ 2 # 3 # Tests for the -k command line option, which stops building a target as soon 4 # as an error is detected, but continues building the other, independent 5 # targets, as far as possible. 6 # 7 # Until 2020-12-07, the exit status of make depended only on the last of the 8 # main targets. Even if the first few targets could not be made, make 9 # nevertheless exited with status 0. 10 11 .MAKEFLAGS: -k 12 .MAKEFLAGS: fail1 fail2 succeed 13 14 fail1 fail2: .PHONY 15 false ${.TARGET} 16 17 succeed: .PHONY 18 true ${.TARGET} 19 20 .END: 21 : The end. 22