1# $NetBSD: opt-ignore.mk,v 1.3 2020/08/23 14:28:04 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
13all: dependency other
14
15dependency:
16	@echo dependency 1
17	@false
18	@echo dependency 2
19	@:; exit 7
20	@echo dependency 3
21
22other:
23	@echo other 1
24	@false
25	@echo other 2
26
27all:
28	@echo main 1
29	@false
30	@echo main 2
31