]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Rename manpages target to all-manpages 2493/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 5 May 2015 10:38:25 +0000 (12:38 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 5 May 2015 10:41:31 +0000 (12:41 +0200)
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

index 6aa8c182783737da544b86116d80ba852110518f..ad9e6983c6a58f93cffc03dc1c897d5f10b37055 100644 (file)
@@ -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