From 03569434b58c35b51b5657990f772ad7e0d91ae6 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 20 Dec 2011 21:53:52 +0200 Subject: [PATCH] doc: dont try to build manpages if no asciidoc --- doc/Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 318afba..4d632bf 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -3,16 +3,27 @@ web = pgf:/home/pgfoundry.org/groups/pgbouncer/htdocs/ manpages = pgbouncer.1 pgbouncer.5 + EXTRA_DIST = config.txt usage.txt todo.txt faq.txt Makefile $(manpages) + +ifeq ($(ASCIIDOC),) +ifneq ($(wildcard pgbouncer.[15]),) +# no asciidoc, but we have manpages +dist_man_MANS = $(manpages) +endif +else +# we have asciidoc, build everything man_MANS = $(manpages) doc_DATA = config.html usage.html todo.html faq.html README.html +endif SUBLOC = doc -XMLTO ?= xmlto -ASCIIDOC ?= asciidoc abs_top_srcdir ?= $(CURDIR)/.. include $(abs_top_srcdir)/lib/mk/antimake.mk +# add rules only if asciidoc is defined +ifneq ($(ASCIIDOC),) + pgbouncer.1: usage.xml $(XMLTO) man $< @@ -31,3 +42,5 @@ README.html: ../README web: $(doc_DATA) rsync -av $(doc_DATA) $(web)/doc/ +endif # ASCIIDOC + -- 2.50.1