Ticket #6522: 02-silent-rules-for-docs.patch

File 02-silent-rules-for-docs.patch, 1.8 KB (added by stewart, 7 years ago)
  • doc/Makefile.am

    commit 3df2d4cab38a9ca1ca4ad11074f3b51b91441f8f
    Author: Stewart Smith <stewart@flamingspork.com>
    Date:   Thu Aug 2 16:11:24 2012 +1000
    
        add $(AM_V_GEN) to documentation generation Makefile targets.
        
        This makes the V=1 or V=0 automake silent build options display (or hide)
        the full command line used.
        
          GEN foo.bar
        
        will be seen rather than the full command.
        
        As with all automake silent rules, "make V=1" will output the full command.
    
    diff --git a/doc/Makefile.am b/doc/Makefile.am
    index 6cdd66d..51a3b57 100644
    a b asciidoc_product = $(nodist_man_MANS) $(doc_DATA) 
    4747# Generate the html documentation from asciidoc, but don't do
    4848# machine-specific replacements yet
    4949$(html_in) :
    50         $(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ $(top_srcdir)/doc/$@
     50        $(AM_V_GEN)$(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ $(top_srcdir)/doc/$@
    5151
    5252tor.html.in : tor.1.txt
    5353torify.html.in : torify.1.txt
    tor-fw-helper.html.in : tor-fw-helper.1.txt 
    5858# Generate the manpage from asciidoc, but don't do
    5959# machine-specific replacements yet
    6060$(man_in) :
    61         $(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ $(top_srcdir)/doc/$@
     61        $(AM_V_GEN)$(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ $(top_srcdir)/doc/$@
    6262
    6363tor.1.in : tor.1.txt
    6464torify.1.in : torify.1.txt
    tor-fw-helper.1.in : tor-fw-helper.1.txt 
    6969# use ../config.status to swap all machine-specific magic strings
    7070# in the asciidoc with their replacements.
    7171$(asciidoc_product) :
    72         if test -e $(top_srcdir)/doc/$@.in && ! test -e ./$@.in ; then \
     72        $(AM_V_GEN)if test -e $(top_srcdir)/doc/$@.in && ! test -e ./$@.in ; then \
    7373                cp $(top_srcdir)/doc/$@.in .; \
    7474        fi
    75         ../config.status --file=$@;
     75        $(AM_V_GEN)../config.status --file=$@;
    7676
    7777tor.1 : tor.1.in
    7878torify.1 : torify.1.in