]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
don't make recursor manpages if pandoc is missing
authorKees Monshouwer <mind04@monshouwer.org>
Sat, 9 Jul 2016 16:49:03 +0000 (18:49 +0200)
committermind04 <mind04@monshouwer.org>
Sat, 9 Jul 2016 16:49:03 +0000 (18:49 +0200)
pdns/recursordist/Makefile.am

index 8ff56231465eb134177e0be1d03c4ec864d06ef7..ab5809c29c867e3d730993bd2d71296b8292eba0 100644 (file)
@@ -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