From: Marko Kreen Date: Tue, 20 Dec 2011 19:53:52 +0000 (+0200) Subject: doc: dont try to build manpages if no asciidoc X-Git-Tag: pgbouncer_1_5_rc1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03569434b58c35b51b5657990f772ad7e0d91ae6;p=pgbouncer doc: dont try to build manpages if no asciidoc --- 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 +