opt-debug-loud.mk revision 1.4
11.4Srillig# $NetBSD: opt-debug-loud.mk,v 1.4 2020/10/05 19:27:48 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.4Srillig# The -dl command line option does not affect commands that are run during
121.4Srillig# variable expansion, 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