zone2ldap.1 \
zone2sql.1
+if HAVE_PANDOC
man_MANS = $(MANPAGES_TARGET)
+endif
EXTRA_DIST = manpages \
markdown \
$(MANPAGES_TARGET)
# html
-.PHONY: html
+.PHONY: html manpages
html: html/index.html
html/index.html: process-md.sh mkdocs.yml markdown/** markdown/*/**
mkdocs build --clean
./process-md.sh post
-.PHONY: manpages
manpages: $(MANPAGES_TARGET)
$(MANPAGES_TARGET): %: manpages/%.md
- pandoc -s -t man $< -o $@
+ $(PANDOC) -s -t man $< -o $@
clean:
rm -rf html *.8 *.1
AC_DEFUN([PDNS_CHECK_PANDOC], [
- AC_CHECK_PROG([PANDOC], [pandoc], [yes], [no])
+ AC_CHECK_PROG([PANDOC], [pandoc], [pandoc], [no])
AS_IF([test "x$PANDOC" = "xno"], [
AS_IF([test ! -d "$srcdir/docs/html" -o ! -f "$srcdir/docs/pdns_server.1"],
[AC_MSG_WARN([pandoc is missing, unable to build documentation and manpages.])]
)
])
+ AM_CONDITIONAL([HAVE_PANDOC], [test "x$PANDOC" != "xno"])
])