]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: silence documentation GEN xml messages according to $(quiet)
authorMike Frysinger <vapier@gentoo.org>
Fri, 28 Mar 2008 21:30:58 +0000 (14:30 -0700)
committerSam Ravnborg <sam@uranus.ravnborg.org>
Fri, 25 Apr 2008 19:03:20 +0000 (21:03 +0200)
Add rules for gen_xml and its quiet & silent variants.  This causes "make -s"
to be silent for gen_xml.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Documentation/DocBook/Makefile

index b2b6366bba5163628d7d4e4617921dda5d442d0f..83966e94cc32308579b7b6f041c4299fad94fbd5 100644 (file)
@@ -187,8 +187,11 @@ quiet_cmd_fig2png = FIG2PNG $@
 
 ###
 # Rule to convert a .c file to inline XML documentation
+       gen_xml = :
+ quiet_gen_xml = echo '  GEN     $@'
+silent_gen_xml = :
 %.xml: %.c
-       @echo '  GEN     $@'
+       @$($(quiet)gen_xml)
        @(                            \
           echo "<programlisting>";   \
           expand --tabs=8 < $< |     \