From 66cc0eec65b3d95a34b3b17ede6f29320bd03862 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sat, 9 Jul 2016 18:49:03 +0200 Subject: [PATCH] don't make recursor manpages if pandoc is missing --- pdns/recursordist/Makefile.am | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pdns/recursordist/Makefile.am b/pdns/recursordist/Makefile.am index 8ff5623146..ab5809c29c 100644 --- a/pdns/recursordist/Makefile.am +++ b/pdns/recursordist/Makefile.am @@ -229,20 +229,21 @@ recursor.conf-dist: pdns_recursor MANPAGES=pdns_recursor.1 \ rec_control.1 -dist_man_MANS=$(MANPAGES) +if HAVE_PANDOC + dist_man_MANS=$(MANPAGES) +endif +if HAVE_MANPAGES + dist_man_MANS=$(MANPAGES) +endif if HAVE_PANDOC $(MANPAGES): %: %.md $(AM_V_GEN)$(PANDOC) -s -t man $< -o $@ else -if HAVE_MANPAGES -#nothing -else $(MANPAGES): echo "You need pandoc to generate the manpages" exit 1 endif -endif if HAVE_SYSTEMD pdns-recursor.service: pdns-recursor.service.in -- 2.47.3