diff options
Diffstat (limited to 'unit-tests/deptgt-silent.mk')
-rw-r--r-- | unit-tests/deptgt-silent.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/unit-tests/deptgt-silent.mk b/unit-tests/deptgt-silent.mk index 64d54c00e632..335a1e897295 100644 --- a/unit-tests/deptgt-silent.mk +++ b/unit-tests/deptgt-silent.mk @@ -1,10 +1,15 @@ -# $NetBSD: deptgt-silent.mk,v 1.3 2020/09/10 21:40:50 rillig Exp $ +# $NetBSD: deptgt-silent.mk,v 1.4 2020/11/15 20:49:20 rillig Exp $ # # Tests for the special target .SILENT in dependency declarations. .SILENT: all -all: +all: loud @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.' + +# 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.' |