From 094360c6c3c1d5d543de03274688b18f5d85bbe7 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 5 May 2015 12:38:25 +0200 Subject: [PATCH] Rename manpages target to all-manpages manpages was both a directory and a .PHONY target. This caused make distcheck to trigger the rule for this target and build all the manpages instead of only the ones needed. The unneeded manpages were left in the build root after a distclean: ERROR: files left in build directory after distclean: ./docs/dnsdist.1 ./docs/pdns_recursor.1 ./docs/rec_control.1 Makefile:824: recipe for target 'distcleancheck' failed make[1]: *** [distcleancheck] Error 1 make[1]: Leaving directory '/home/ruben/src/pdns/pdns-git/_build/sub' Makefile:751: recipe for target 'distcheck' failed make: *** [distcheck] Error 1 Always ship all the markdown for the manpages in the tarball but don't trigger the rule to generate all the files. After this change, we can run make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-dependency-tracking --- docs/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 6aa8c18278..ad9e6983c6 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -37,7 +37,7 @@ endif EXTRA_DIST = manpages \ markdown -.PHONY: html manpages +.PHONY: html all-manpages html: html/index.html html/index.html: process-md.sh mkdocs.yml markdown/** markdown/*/** manpages/* @@ -51,7 +51,7 @@ html/index.html: process-md.sh mkdocs.yml markdown/** markdown/*/** manpages/* html.tar.bz2: html tar cjf html.tar.bz2 html/ -manpages: $(MANPAGES_TARGET_ALL) +all-manpages: $(MANPAGES_TARGET_ALL) if HAVE_PANDOC $(MANPAGES_TARGET_ALL): %: manpages/%.md -- 2.47.2