From: Ruben Kerkhof Date: Thu, 1 Jan 2015 18:05:01 +0000 (+0100) Subject: Generating manpages without pandoc is an error X-Git-Tag: rec-3.7.0-rc1~67^2~9^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24405a1de720c55349965e778eec6c29b1130c16;p=pdns Generating manpages without pandoc is an error If for some reason we end up with a dist tarball without generated manpages, better warn and exit then trying to run no -s -t man manpages/dnsdist.1.md -o dnsdist.1 --- diff --git a/docs/Makefile.am b/docs/Makefile.am index 3c4a22d28..d0bee9ebd 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -34,8 +34,14 @@ html/index.html: process-md.sh mkdocs.yml markdown/** markdown/*/** manpages: $(MANPAGES_TARGET) +if HAVE_PANDOC $(MANPAGES_TARGET): %: manpages/%.md $(PANDOC) -s -t man $< -o $@ +else +$(MANPAGES_TARGET): + echo "You need pandoc to generate the manpages" + exit 1 +endif clean: rm -rf html *.8 *.1