From: tcely Date: Tue, 1 Aug 2017 11:31:14 +0000 (-0400) Subject: Build all the man pages in a single command. X-Git-Tag: dnsdist-1.4.0-rc3~42^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6a528cece79577b7004d997726b63be0fe50eb;p=thirdparty%2Fpdns.git Build all the man pages in a single command. --- diff --git a/docs/Makefile.am b/docs/Makefile.am index 015414afd3..a0393a846a 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -61,10 +61,13 @@ EXTRA_DIST = $(MANPAGES_DIST) if HAVE_VIRTUALENV if !HAVE_MANPAGES -$(MANPAGES_DIST): %: manpages/%.rst .venv - outputdir="`mktemp -u -d mans.XXXXXX`"; .venv/bin/python -msphinx -b man . "$$outputdir" "$<" && mv "$${outputdir}/$@" "$@"; rm -rf "$$outputdir" +$(MANPAGES_DIST): %: manpages/%.rst mans + mv "mans/$@" "$@" || { rm -rf mans; false; } endif # if !HAVE_MANPAGES +mans: .venv + rm -rf "$@"; .venv/bin/python -msphinx -b man manpages "$@" + .venv: requirements.txt virtualenv .venv .venv/bin/pip install -U pip setuptools setuptools-git