diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-11 16:12:01 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-11 16:27:11 +0200 |
commit | 825722a190bcc939abcf129cafd896b4b84d0ecd (patch) | |
tree | 4ae52592218687f13a83d9ad9dda17303b0bb515 /automake.in | |
parent | 5f6e8015727560fc92d613bb7c531c21a03850ab (diff) | |
download | automake-825722a190bcc939abcf129cafd896b4b84d0ecd.tar.gz |
silent: new $(AM_V_P) variable, tell if we're running in silent mode
Addresses part of automake bug#8665.
* automake.in (handle_silent): Define a new make variable '$(AM_V_P)',
that expands to a shell conditional that can be used in make recipes to
determine whether they are being run in silent mode or not. The choice
of the name derives from the LISP convention of appending the letter
'P' to denote a predicate (see also "the '-P' convention" in the Jargon
File); we do so for lack of a better convention.
* t/automake.texi, NEWS: Document the new variable.
* t/silent6.sh: Adjust and extend. Move out the checks that didn't
actually deal with user extension of silent rules ...
* t/silent-obsolescent-warns.sh: ... into this test (bound to be
removed once 'maint' is merged into the 'master' branch).
* t/list-of-tests.mk: Add the new test.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'automake.in')
-rw-r--r-- | automake.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/automake.in b/automake.in index 722a2026d..53bed2f1f 100644 --- a/automake.in +++ b/automake.in @@ -1235,6 +1235,13 @@ sub define_verbose_libtool () sub handle_silent () { return unless option 'silent-rules'; + # Define "$(AM_V_P)", expanding to a shell conditional that can be + # used in make recipes to determine whether we are being run in + # silent mode or not. The choice of the name derives from the LISP + # convention of appending the letter 'P' to denote a predicate (see + # also "the '-P' convention" in the Jargon File); we do so for lack + # of a better convention. + define_verbose_var ('P', 'false', ':'); # *Always* provide the user with 'AM_V_GEN' for 'silent-rules' mode. define_verbose_tagvar ('GEN'); define_verbose_var ('at', '@'); |