xref: /freebsd/contrib/bmake/unit-tests/deptgt-silent.mk (revision 257e70f1d5ee61037c8c59b116538d3b6b1427a2)
1# $NetBSD: deptgt-silent.mk,v 1.4 2020/11/15 20:49:20 rillig Exp $
2#
3# Tests for the special target .SILENT in dependency declarations.
4
5.SILENT: all
6
7all: loud
8	@echo 'This is not echoed because of the @.'
9	# Without the .SILENT, the following command would be echoed.
10	echo 'This is not echoed because of the .SILENT.'
11
12# Demonstrate that the .SILENT only applies to the particular target.
13# This is unlike .DELETE_ON_ERROR, which is a global setting.
14loud: .PHONY
15	echo 'This is a loud command.'
16