summaryrefslogtreecommitdiff
path: root/usr.bin/make/unit-tests/sh-leading-plus.mk
blob: 83e7e7a15e244b278c42fb8a0dc9c9f58dd2ac4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $NetBSD: sh-leading-plus.mk,v 1.5 2023/01/19 19:55:27 rillig Exp $
#
# Tests for shell commands preceded by a '+', to run them even if
# the command line option -n is given.

.MAKEFLAGS: -n

all:
	@echo 'this command is not run'
	@+echo 'this command is run'

	# Since 2023-01-17, the leading '@', '+' and '-' may contain
	# whitespace, for compatibility with GNU make.
	+ + + @echo 'whitespace in leading part'