1 # $NetBSD: opt-query.mk,v 1.3 2020/08/19 05:13:18 rillig Exp $
3 # Tests for the -q command line option.
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
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
13 # None of these commands are run.
15 @echo '$@: hidden command'
16 @+echo '$@: run always'
18 # None of these commands are run.
20 @echo '$@: hidden command'
21 @+echo '$@: run always'
23 # The exit status 1 is because the "all" target has to be made, that is,
24 # it is not up-to-date.