xref: /freebsd/contrib/bmake/unit-tests/opt-keep-going.mk (revision cd8537910406e68d4719136a5b0cf6d23bb1b23b)
1# $NetBSD: opt-keep-going.mk,v 1.5 2020/11/09 20:50:56 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.MAKEFLAGS: -k
9
10all: dependency other
11
12dependency:
13	@echo dependency 1
14	@false
15	@echo dependency 2
16	@:; exit 7
17	@echo dependency 3
18
19other:
20	@echo other 1
21	@false
22	@echo other 2
23
24all:
25	@echo main 1
26	@false
27	@echo main 2
28