2023-01-28 00:23:54 +00:00
|
|
|
# $NetBSD: sh-leading-at.mk,v 1.6 2023/01/19 19:55:27 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
|
|
|
# Tests for shell commands preceded by an '@', to suppress printing
|
|
|
|
# the command to stdout.
|
2020-11-20 03:54:37 +00:00
|
|
|
#
|
|
|
|
# See also:
|
|
|
|
# .SILENT
|
|
|
|
# depsrc-silent.mk
|
|
|
|
# opt-silent.mk
|
2020-09-05 16:11:04 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
@
|
|
|
|
@echo 'ok'
|
|
|
|
@ echo 'space after @'
|
|
|
|
echo 'echoed'
|
2020-11-20 03:54:37 +00:00
|
|
|
# The leading '@' can be repeated.
|
|
|
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
|
|
|
@@@echo '3'
|
2023-01-28 00:23:54 +00:00
|
|
|
|
|
|
|
# Since 2023-01-17, the leading '@', '+' and '-' may contain
|
|
|
|
# whitespace, for compatibility with GNU make.
|
|
|
|
@ @ @ echo 'whitespace in leading part'
|