18e11a9b4SSimon J. Gerraty# $NetBSD: opt-keep-going-multiple.mk,v 1.1 2020/12/07 01:32:04 rillig Exp $ 28e11a9b4SSimon J. Gerraty# 38e11a9b4SSimon J. Gerraty# Tests for the -k command line option, which stops building a target as soon 48e11a9b4SSimon J. Gerraty# as an error is detected, but continues building the other, independent 58e11a9b4SSimon J. Gerraty# targets, as far as possible. 68e11a9b4SSimon J. Gerraty# 78e11a9b4SSimon J. Gerraty# Until 2020-12-07, the exit status of make depended only on the last of the 88e11a9b4SSimon J. Gerraty# main targets. Even if the first few targets could not be made, make 98e11a9b4SSimon J. Gerraty# nevertheless exited with status 0. 108e11a9b4SSimon J. Gerraty 118e11a9b4SSimon J. Gerraty.MAKEFLAGS: -k 128e11a9b4SSimon J. Gerraty.MAKEFLAGS: fail1 fail2 succeed 138e11a9b4SSimon J. Gerraty 148e11a9b4SSimon J. Gerratyfail1 fail2: .PHONY 158e11a9b4SSimon J. Gerraty false ${.TARGET} 168e11a9b4SSimon J. Gerraty 178e11a9b4SSimon J. Gerratysucceed: .PHONY 188e11a9b4SSimon J. Gerraty true ${.TARGET} 198e11a9b4SSimon J. Gerraty 208e11a9b4SSimon J. Gerraty.END: 218e11a9b4SSimon J. Gerraty : The end. 22