blob: d4c3b5d436435c16567a2f667e7a255586e65247 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $NetBSD: job-flags.mk,v 1.2 2020/11/14 13:17:47 rillig Exp $
#
# Tests for Job.flags, which are controlled by special source dependencies
# like .SILENT or .IGNORE, as well as the command line options -s or -i.
.MAKEFLAGS: -j1
all: silent .WAIT ignore .WAIT ignore-cmds
.BEGIN:
@echo $@
silent: .SILENT .PHONY
echo $@
ignore: .IGNORE .PHONY
@echo $@
true in $@
false in $@
@echo 'Still there in $@'
ignore-cmds: .PHONY
# This node is not marked .IGNORE; individual commands can be switched
# to ignore mode by prefixing them with a '-'.
-false without indentation
# This also works if the '-' is indented by a space or a tab.
# Leading whitespace is stripped off by ParseLine_ShellCommand.
-false space
-false tab
.END:
@echo $@
|