From 24405a1de720c55349965e778eec6c29b1130c16 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 1 Jan 2015 19:05:01 +0100 Subject: [PATCH] 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 --- docs/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.40.0