xref: /freebsd/contrib/bmake/unit-tests/opt-keep-going.mk (revision 36d6566e5985030fd2f1100bd9c1387bbe0bd290)
1# $NetBSD: opt-keep-going.mk,v 1.4 2020/10/18 18:12:42 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.MAKEFLAGS: -d0			# switch stdout to being line-buffered
8
9all: dependency other
10
11dependency:
12	@echo dependency 1
13	@false
14	@echo dependency 2
15	@:; exit 7
16	@echo dependency 3
17
18other:
19	@echo other 1
20	@false
21	@echo other 2
22
23all:
24	@echo main 1
25	@false
26	@echo main 2
27