From: Stefano Lattarini Date: Mon, 11 Jun 2012 11:00:23 +0000 (+0200) Subject: refactor: silent rules handling (a little) X-Git-Tag: v1.12.2~75^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f6e8015727560fc92d613bb7c531c21a03850ab;p=platform%2Fupstream%2Fautomake.git refactor: silent rules handling (a little) * automake.in (handle_languages): Move definition of $(AM_V_GEN) variable ... (define_verbose_tagvar): ... and of '$(AM_V_at)' variable ... (handle_silent): ... in this new subroutine. (generate_makefile): Call it. Signed-off-by: Stefano Lattarini --- diff --git a/automake.in b/automake.in index 5d777c1..722a202 100644 --- a/automake.in +++ b/automake.in @@ -1206,7 +1206,6 @@ sub define_verbose_tagvar ($) if (option 'silent-rules') { define_verbose_var ($name, '@echo " '. $name . ' ' x (8 - length ($name)) . '" $@;'); - define_verbose_var ('at', '@'); } } @@ -1233,6 +1232,14 @@ sub define_verbose_libtool () return verbose_flag ('lt'); } +sub handle_silent () +{ + return unless option 'silent-rules'; + # *Always* provide the user with 'AM_V_GEN' for 'silent-rules' mode. + define_verbose_tagvar ('GEN'); + define_verbose_var ('at', '@'); +} + ################################################################ @@ -1590,9 +1597,6 @@ sub handle_languages unless defined $done{$languages{'c'}}; define_linker_variable ($languages{'c'}); } - - # Always provide the user with 'AM_V_GEN' for 'silent-rules' mode. - define_verbose_tagvar ('GEN'); } @@ -8153,6 +8157,8 @@ sub generate_makefile ($$) handle_programs; handle_scripts; + handle_silent; + # These must be run after all the sources are scanned. They # use variables defined by &handle_libraries, &handle_ltlibraries, # or &handle_programs.