2020-11-20 03:54:37 +00:00
|
|
|
# $NetBSD: deptgt-silent.mk,v 1.4 2020/11/15 20:49:20 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
|
|
|
# Tests for the special target .SILENT in dependency declarations.
|
|
|
|
|
2020-11-07 19:39:21 +00:00
|
|
|
.SILENT: all
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2020-11-20 03:54:37 +00:00
|
|
|
all: loud
|
2020-11-07 19:39:21 +00:00
|
|
|
@echo 'This is not echoed because of the @.'
|
|
|
|
# Without the .SILENT, the following command would be echoed.
|
|
|
|
echo 'This is not echoed because of the .SILENT.'
|
2020-11-20 03:54:37 +00:00
|
|
|
|
|
|
|
# Demonstrate that the .SILENT only applies to the particular target.
|
|
|
|
# This is unlike .DELETE_ON_ERROR, which is a global setting.
|
|
|
|
loud: .PHONY
|
|
|
|
echo 'This is a loud command.'
|