xref: /freebsd/contrib/bmake/unit-tests/opt-keep-going.mk (revision 2c3632d14fe37fa35c262ee9fb66835be0a52621)
1*2c3632d1SSimon J. Gerraty# $NetBSD: opt-keep-going.mk,v 1.3 2020/08/23 14:28:04 rillig Exp $
2*2c3632d1SSimon J. Gerraty#
3*2c3632d1SSimon J. Gerraty# Tests for the -k command line option, which stops building a target as soon
4*2c3632d1SSimon J. Gerraty# as an error is detected, but continues building the other, independent
5*2c3632d1SSimon J. Gerraty# targets, as far as possible.
6*2c3632d1SSimon J. Gerraty
7*2c3632d1SSimon J. Gerratyall: dependency other
8*2c3632d1SSimon J. Gerraty
9*2c3632d1SSimon J. Gerratydependency:
10*2c3632d1SSimon J. Gerraty	@echo dependency 1
11*2c3632d1SSimon J. Gerraty	@false
12*2c3632d1SSimon J. Gerraty	@echo dependency 2
13*2c3632d1SSimon J. Gerraty	@:; exit 7
14*2c3632d1SSimon J. Gerraty	@echo dependency 3
15*2c3632d1SSimon J. Gerraty
16*2c3632d1SSimon J. Gerratyother:
17*2c3632d1SSimon J. Gerraty	@echo other 1
18*2c3632d1SSimon J. Gerraty	@false
19*2c3632d1SSimon J. Gerraty	@echo other 2
20*2c3632d1SSimon J. Gerraty
21*2c3632d1SSimon J. Gerratyall:
22*2c3632d1SSimon J. Gerraty	@echo main 1
23*2c3632d1SSimon J. Gerraty	@false
24*2c3632d1SSimon J. Gerraty	@echo main 2
25