Makefile: printvars: don't print anything when VARS is not set
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 12 Mar 2019 17:55:34 +0000 (18:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 12 Mar 2019 20:58:32 +0000 (21:58 +0100)
commitfd5bd12379dcacc9ca359a40624148e8c3fea3c3
tree9448188de9a96a61069fc584f5b23c5828ccaff6
parenta5e8c81875a26551e780e409a0647916e626c969
Makefile: printvars: don't print anything when VARS is not set

Using 'make printvars' for printing all variables is not very useful.
E.g. all macros will output some bogus value. In addition, the same can
be achieved with 'make -p'.

We can simply remove the condition on $(VARS). If VARS is not set, the
filter expression will be empty which matches nothing, so nothing is
printed.

Note that the old behaviour can still be achieved with:
make printvars VARS=%

Update the 'make help' text to match the new behaviour.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Makefile