Description: Ensure that manpages won't be rebuilt automatically.
Author: Nicolas Boullis <nboullis@debian.org>
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -90,6 +90,8 @@
              iso-info.help2man iso-read.help2man $(GETOPT_C) getopt.h \
              $(man_MANS)
 
+if MAINTAINER_MODE
 $(man_MANS): %.1: % %.help2man 
 	-$(HELP2MAN) --opt-include=$<.help2man --no-info --output=$@ ./$<
-MOSTLYCLEANFILES = $(man_MANS)
+endif
+MAINTAINERCLEANFILES = $(man_MANS)
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -374,7 +374,7 @@
              iso-info.help2man iso-read.help2man $(GETOPT_C) getopt.h \
              $(man_MANS)
 
-MOSTLYCLEANFILES = $(man_MANS)
+MAINTAINERCLEANFILES = $(man_MANS)
 all: all-recursive
 
 .SUFFIXES:
@@ -748,7 +748,6 @@
 	  `test -z '$(STRIP)' || \
 	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 mostlyclean-generic:
-	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
 
 clean-generic:
 
@@ -758,6 +757,7 @@
 maintainer-clean-generic:
 	@echo "This command is intended for maintainers to use"
 	@echo "it deletes files that may require special tools to rebuild."
+	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
 clean: clean-recursive
 
 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
@@ -838,8 +838,8 @@
 	uninstall-binPROGRAMS uninstall-man uninstall-man1
 
 
-$(man_MANS): %.1: % %.help2man 
-	-$(HELP2MAN) --opt-include=$<.help2man --no-info --output=$@ ./$<
+@MAINTAINER_MODE_TRUE@$(man_MANS): %.1: % %.help2man 
+@MAINTAINER_MODE_TRUE@	-$(HELP2MAN) --opt-include=$<.help2man --no-info --output=$@ ./$<
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
