From 2f1c0906c969bb129676ed1d1dc44db7d5acedf8 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 7 Apr 2016 03:13:14 -0400 Subject: [PATCH] doc/man/Makefile.am: add failing dist-hook on --disable-man-pages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- doc/man/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 840a9c51d..bebfb1fb8 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -134,5 +134,11 @@ dist_man3_MANS += $(MAN3) dist_man8_MANS += $(MAN8) endif # MAN_PAGES_OPT +if !MAN_PAGES_OPT +dist-hook: + @echo "Error: Please enable the man pages before creating a distribution tarball." + @false +endif # !MAN_PAGES_OPT + # always distribute the source files EXTRA_DIST = $(MAN_TXT) $(COMMON_TXT) $(XSL_SRC_FILES) $(ASCIIDOC_CONF) -- 2.34.1