Skip to contentSkip to conversation

kbuild: silence documentation GEN xml messages according to $(quiet)

PATCH In review Mike Frysinger 3 participants 5 messages Mar 24, 2008 – Apr 25, 2008 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: silence documentation GEN xml messages according to $(quiet)

---
 Documentation/DocBook/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Documentation/DocBook/Makefile +4 -1
index 300e170..f6a4ba3 100644
@@ -186,8 +186,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 < $< |     \
Signature · 1 line
1.5.4.4
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · On Mon, 24 Mar 2008 11:16:55 -0400 Mike Frysinger wrote:
---
 Documentation/DocBook/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Documentation/DocBook/Makefile +0 -0
index 300e170..f6a4ba3 100644
@@ -186,8 +186,11 @@ quiet_cmd_fig2png = FIG2PNG $@
 
 ###

Documentation/DocBook/Makefile quiet_cmd_fig2png = FIG2PNG $@ · line 196

Quoted 10 lines
Documentation/DocBook/Makefile +4 -1
 # 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 < $< |     \

The Makefile changes are good, but the patch description makes it appear that Mike was rushed. How about something like this?

Add rules for gen_xml and its quiet & silent variants. This causes "make -s" to be silent for gen_xml.

---
~Randy

#2 lore raw
Quoted 12 lines · Randy Dunlap
Quoted 11 lines · On Mon, 24 Mar 2008 11:16:55 -0400 Mike Frysinger wrote:
---
 Documentation/DocBook/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/Documentation/DocBook/Makefile index 300e170..f6a4ba3 100644

Documentation/DocBook/Makefile +0 -0
@@ -186,8 +186,11 @@ quiet_cmd_fig2png = FIG2PNG $@
 
Quoted 15 lines

Documentation/DocBook/Makefile quiet_cmd_fig2png = FIG2PNG $@

Quoted 12 lines
Documentation/DocBook/Makefile +4 -2
 ###
 # 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 < $< |     \
--

The Makefile changes are good, but the patch description makes it appear that Mike was rushed. How about something like this?

i just copied & pasted the previous commit messages for similar fixes. your longer version sounds fine to me though.
-mike

#3 lore raw
In reply to Randy Dunlap
Quoted 29 lines · Randy Dunlap
Quoted 13 lines · On Mon, 24 Mar 2008 11:16:55 -0400 Mike Frysinger wrote:
---
 Documentation/DocBook/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Documentation/DocBook/Makefile +0 -0
index 300e170..f6a4ba3 100644
@@ -186,8 +186,11 @@ quiet_cmd_fig2png = FIG2PNG $@
 
 ###

Documentation/DocBook/Makefile quiet_cmd_fig2png = FIG2PNG $@ · line 196

Quoted 10 lines
Documentation/DocBook/Makefile +4 -1
 # 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 < $< |     \

The Makefile changes are good, but the patch description makes it appear that Mike was rushed. How about something like this?

Quoted 4 lines

Add rules for gen_xml and its quiet & silent variants. This causes "make -s" to be silent for gen_xml.

Applied - but I forgot to add this update.

Sorry,

Sam

#4 lore raw
Quoted 30 lines · Sam Ravnborg
Quoted 29 lines · Randy Dunlap
Quoted 13 lines · On Mon, 24 Mar 2008 11:16:55 -0400 Mike Frysinger wrote:
---
 Documentation/DocBook/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Documentation/DocBook/Makefile +0 -0
index 300e170..f6a4ba3 100644
@@ -186,8 +186,11 @@ quiet_cmd_fig2png = FIG2PNG $@
 
 ###

Documentation/DocBook/Makefile quiet_cmd_fig2png = FIG2PNG $@ · line 196

Quoted 10 lines
Documentation/DocBook/Makefile +4 -1
 # 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 < $< |     \

The Makefile changes are good, but the patch description makes it appear that Mike was rushed. How about something like this?

Quoted 5 lines
Quoted 4 lines

Add rules for gen_xml and its quiet & silent variants. This causes "make -s" to be silent for gen_xml.

Applied - but I forgot to add this update.

OK - I had not applied the patch so I got it right in the end. Applied and pushed out.

Sam