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