]> granicus.if.org Git - pgbouncer/commitdiff
skip manpage build if tools not availalbe
authorMarko Kreen <markokr@gmail.com>
Sat, 12 Jan 2008 17:33:39 +0000 (17:33 +0000)
committerMarko Kreen <markokr@gmail.com>
Sat, 12 Jan 2008 17:33:39 +0000 (17:33 +0000)
doc/Makefile

index da9db89814c77d88faae4c7fdf922c28a436898c..aec5fb3559634777a6134d67c5602a89d5ab3576 100644 (file)
@@ -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)