From 012f7939784358b02726c169543aa99436439335 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 23 Sep 2007 21:19:06 -0500 Subject: Allow a normal 'make' to compile without asciidoc installed If we don't have asciidoc installed or enabled, we should still have a successful make. However, we want to ensure 'make dist' fails without asciidoc. This commit should ensure this. Signed-off-by: Dan McGee --- doc/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/Makefile.am') diff --git a/doc/Makefile.am b/doc/Makefile.am index ad251287..d3c168d6 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,3 +1,8 @@ +# We have to do some funny stuff here with the manpages. In order to ensure +# a dist tarball doesn't get put out there without manpages, we keep those +# files listed in EXTRA_DIST no matter what. However, we only add them to +# man_MANS if --enable-asciidoc was used. + ASCIIDOC_MANS = \ pacman.8 \ makepkg.8 \ @@ -11,7 +16,11 @@ if USE_DOXYGEN DOXYGEN_MANS = $(wildcard man3/*.3) endif +if USE_ASCIIDOC man_MANS = $(ASCIIDOC_MANS) $(DOXYGEN_MANS) +else +man_MANS = $(DOXYGEN_MANS) +endif EXTRA_DIST = \ pacman.8.txt \ -- cgit v1.2.3-24-g4f1b