From: Marko Kreen Date: Sat, 12 Jan 2008 17:33:39 +0000 (+0000) Subject: skip manpage build if tools not availalbe X-Git-Tag: pgbouncer_1_2_rc2~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f58d5c0338027cbea65f8d6d9df82c30cfe65c2f;p=pgbouncer skip manpage build if tools not availalbe --- 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)