]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/opt-query.mk
Update to bmake-20200902
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / opt-query.mk
1 # $NetBSD: opt-query.mk,v 1.3 2020/08/19 05:13:18 rillig Exp $
2 #
3 # Tests for the -q command line option.
4 #
5 # The -q option only looks at the dependencies between the targets.
6 # None of the commands in the targets are run, not even those that are
7 # prefixed with '+'.
8
9 # This command cannot be prevented from being run since it is used at parse
10 # time, and any later variable assignments may depend on its result.
11 !=      echo 'command during parsing' 1>&2; echo
12
13 # None of these commands are run.
14 .BEGIN:
15         @echo '$@: hidden command'
16         @+echo '$@: run always'
17
18 # None of these commands are run.
19 all:
20         @echo '$@: hidden command'
21         @+echo '$@: run always'
22
23 # The exit status 1 is because the "all" target has to be made, that is,
24 # it is not up-to-date.