xref: /freebsd/contrib/bmake/unit-tests/deptgt-silent.mk (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
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