From: Philippe Proulx Date: Thu, 7 Apr 2016 07:13:14 +0000 (-0400) Subject: doc/man/Makefile.am: add failing dist-hook on --disable-man-pages X-Git-Tag: v2.9.0-rc1~262 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=2f1c0906c969bb129676ed1d1dc44db7d5acedf8 doc/man/Makefile.am: add failing dist-hook on --disable-man-pages Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- 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)