summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-09-24 04:19:06 +0200
committerDan McGee <dan@archlinux.org>2007-09-24 04:19:06 +0200
commit012f7939784358b02726c169543aa99436439335 (patch)
tree387415e930f074baaa628b9b29a0c0e84cbdc34d
parent843d368ef60a74719dfc74a27de3fe3ef441951f (diff)
downloadpacman-012f7939784358b02726c169543aa99436439335.tar.gz
pacman-012f7939784358b02726c169543aa99436439335.tar.xz
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 <dan@archlinux.org>
-rw-r--r--doc/Makefile.am9
1 files changed, 9 insertions, 0 deletions
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 \