xref: /freebsd/contrib/bmake/unit-tests/sh-leading-at.mk (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1# $NetBSD: sh-leading-at.mk,v 1.6 2023/01/19 19:55:27 rillig Exp $
2#
3# Tests for shell commands preceded by an '@', to suppress printing
4# the command to stdout.
5#
6# See also:
7#	.SILENT
8#	depsrc-silent.mk
9#	opt-silent.mk
10
11all:
12	@
13	@echo 'ok'
14	@ echo 'space after @'
15	echo 'echoed'
16	# The leading '@' can be repeated.
17	@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
18	@@@echo '3'
19
20	# Since 2023-01-17, the leading '@', '+' and '-' may contain
21	# whitespace, for compatibility with GNU make.
22	@ @ @ echo 'whitespace in leading part'
23