]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/opt-keep-going.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / opt-keep-going.mk
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
9 all: dependency other
10
11 dependency:
12         @echo dependency 1
13         @false
14         @echo dependency 2
15         @:; exit 7
16         @echo dependency 3
17
18 other:
19         @echo other 1
20         @false
21         @echo other 2
22
23 all:
24         @echo main 1
25         @false
26         @echo main 2