1*06b9b3e0SSimon J. Gerraty# $NetBSD: opt-keep-going.mk,v 1.6 2020/12/07 00:53:30 rillig Exp $ 22c3632d1SSimon J. Gerraty# 32c3632d1SSimon J. Gerraty# Tests for the -k command line option, which stops building a target as soon 42c3632d1SSimon J. Gerraty# as an error is detected, but continues building the other, independent 52c3632d1SSimon J. Gerraty# targets, as far as possible. 6*06b9b3e0SSimon J. Gerraty# 7*06b9b3e0SSimon J. Gerraty# Until 2020-12-07, if a dependency of the main target failed, the exit 8*06b9b3e0SSimon J. Gerraty# status was nevertheless 0, which was wrong since the main targets could 9*06b9b3e0SSimon J. Gerraty# not be made. This was only wrong in -k mode combined with compat mode. 102c3632d1SSimon J. Gerraty 11956e45f6SSimon J. Gerraty.MAKEFLAGS: -d0 # switch stdout to being line-buffered 12e2eeea75SSimon J. Gerraty.MAKEFLAGS: -k 13956e45f6SSimon J. Gerraty 142c3632d1SSimon J. Gerratyall: dependency other 152c3632d1SSimon J. Gerraty 162c3632d1SSimon J. Gerratydependency: 172c3632d1SSimon J. Gerraty @echo dependency 1 182c3632d1SSimon J. Gerraty @false 192c3632d1SSimon J. Gerraty @echo dependency 2 202c3632d1SSimon J. Gerraty @:; exit 7 212c3632d1SSimon J. Gerraty @echo dependency 3 222c3632d1SSimon J. Gerraty 232c3632d1SSimon J. Gerratyother: 242c3632d1SSimon J. Gerraty @echo other 1 252c3632d1SSimon J. Gerraty @false 262c3632d1SSimon J. Gerraty @echo other 2 272c3632d1SSimon J. Gerraty 282c3632d1SSimon J. Gerratyall: 292c3632d1SSimon J. Gerraty @echo main 1 302c3632d1SSimon J. Gerraty @false 312c3632d1SSimon J. Gerraty @echo main 2 32