From f58d5c0338027cbea65f8d6d9df82c30cfe65c2f Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Sat, 12 Jan 2008 17:33:39 +0000 Subject: [PATCH] skip manpage build if tools not availalbe --- doc/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index da9db89..aec5fb3 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -7,15 +7,24 @@ web = mkz@shell.pgfoundry.org:/home/pgfoundry.org/groups/pgbouncer/htdocs/ MANPAGES = pgbouncer.1 pgbouncer.5 HTML = config.html usage.html todo.html faq.html +ifneq ($(ASCIIDOC),) all: $(MANPAGES) - -html: $(HTML) - install: $(MANPAGES) mkdir -p $(DESTDIR)$(mandir)/man1/ mkdir -p $(DESTDIR)$(mandir)/man5/ install -m 644 pgbouncer.1 $(DESTDIR)$(mandir)/man1/ install -m 644 pgbouncer.5 $(DESTDIR)$(mandir)/man5/ +else +all: + +install: + mkdir -p $(DESTDIR)$(mandir)/man1/ + mkdir -p $(DESTDIR)$(mandir)/man5/ + test -f pgbouncer.1 && install -m 644 pgbouncer.1 $(DESTDIR)$(mandir)/man1/ + test -f pgbouncer.5 && install -m 644 pgbouncer.5 $(DESTDIR)$(mandir)/man5/ +endif + +html: $(HTML) upload: devupload.sh overview.txt $(wiki) -- 2.40.0