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