lint.mk revision 1.3
11.3Srillig# $NetBSD: lint.mk,v 1.3 2020/09/15 16:22:04 rillig Exp $
21.2Srillig#
31.2Srillig# Demonstrates stricter checks that are only enabled in the lint mode,
41.2Srillig# using the -dL option.
51.2Srillig
61.2Srillig# Ouch: as of 2020-08-03, make exits successfully even though the error
71.2Srillig# message has been issued as PARSE_FATAL.
81.2Srillig
91.2Srillig# Ouch: as of 2020-08-03, the variable is malformed and parsing stops
101.2Srillig# for a moment, but is continued after the wrongly-guessed end of the
111.2Srillig# variable, which echoes "y@:Q}".
121.2Srillig
131.3Srillig.MAKEFLAGS: -dL
141.3Srillig
151.2Srilligall: mod-loop-varname
161.2Srillig
171.2Srilligmod-loop-varname:
181.2Srillig	@echo ${VAR:Uvalue:@${:Ubar:S,b,v,}@x${var}y@:Q}
191.2Srillig	@echo ${VAR:Uvalue:@!@x$!y@:Q}	# surprisingly allowed
20