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