From: Romain Francoise
Closes: #436936

Here's a patch for this bug; it's necessary because during the
Debian build process the top-level makefile is debian/rules and make
adds -w to MAKEFLAGS for sub-makes, causing the messages to appear
in the documentation when these targets are run.  During a normal
build the makefile is not run by a sub-make so this bug isn't
triggered.

Upstream status: not submitted

---
 Makefile.in |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/Makefile.in
+++ b/Makefile.in
@@ -182,7 +182,7 @@ doc/README : doc/README.in $(QUILT:%=qui
 	@while read line; do						\
 		case "$$line" in					\
 		'@REFERENCE''@')					\
-			$(MAKE) -s reference				\
+			$(MAKE) -s --no-print-directory reference	\
 			;;						\
 		*)							\
 			printf "%s\n" "$$line"				\
@@ -195,7 +195,7 @@ doc/quilt.1: doc/quilt.1.in $(QUILT:%=qu
 	while read line; do						\
 	  case "$$line" in						\
 	  '@REFERENCE''@')						\
-	    $(MAKE) -s reference |					\
+	    $(MAKE) -s --no-print-directory reference |       		\
 	    $(SED) -e 's/^quilt \([^ ]*\)\(.*\)/.IP "\\fB\1\\fP\2 " 4/'	\
 		   -e 's/^  \(-[^\t]*\)\t\?/.IP "    \1" 8\n/'	        \
 		   -e 's/^  \t\?//'					\
@@ -204,7 +204,7 @@ doc/quilt.1: doc/quilt.1.in $(QUILT:%=qu
 	    printf "%s\n" "$$line"					\
 	    ;;								\
 	  esac;								\
-	done < $< 2>&1 > $@
+	done < $< > $@
 
 .PHONY :: reference
 reference : $(QUILT:%=quilt/%) quilt/scripts/patchfns compat
