1# $NetBSD: opt-ignore.mk,v 1.4 2020/10/18 18:12:42 rillig Exp $ 2# 3# Tests for the -i command line option, which ignores the exit status of the 4# shell commands, and just continues with the next command, even from the same 5# target. 6# 7# Is there a situation in which this option is useful? 8# 9# Why are the "Error code" lines all collected at the bottom of the output 10# file, where they cannot be related to the individual shell commands that 11# failed? 12 13.MAKEFLAGS: -d0 # switch stdout to being line-buffered 14 15all: dependency other 16 17dependency: 18 @echo dependency 1 19 @false 20 @echo dependency 2 21 @:; exit 7 22 @echo dependency 3 23 24other: 25 @echo other 1 26 @false 27 @echo other 2 28 29all: 30 @echo main 1 31 @false 32 @echo main 2 33