11.5Srillig# $NetBSD: opt-debug-loud.mk,v 1.5 2023/12/19 19:33:40 rillig Exp $
21.1Srillig#
31.1Srillig# Tests for the -dl command line option, which prints the commands before
41.1Srillig# running them, ignoring the command line option for silent mode (-s) as
51.1Srillig# well as the .SILENT special source and target, as well as the '@' prefix
61.1Srillig# for shell commands.
71.1Srillig
81.4Srillig.MAKEFLAGS: -dl -s
91.4Srillig.SILENT:
101.1Srillig
111.5Srillig# The -dl command line option does not affect commands that are run when
121.5Srillig# evaluating expressions and their modifiers, such as :!cmd! or :sh.
131.4Srillig.if ${:!echo word!} != "word"
141.4Srillig.  error
151.4Srillig.endif
161.1Srillig
171.4Srilligall: .SILENT
181.4Srillig	# Even though the command line option -s is given, .SILENT is set
191.4Srillig	# for all targets and for this target in particular, the command
201.4Srillig	# is still printed.  The -dl debugging option is stronger than all
211.4Srillig	# of these.
221.4Srillig	@echo all-word
23