]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Actually fix the mans conflict.
authortcely <tcely@users.noreply.github.com>
Tue, 1 Aug 2017 04:11:45 +0000 (00:11 -0400)
committertcely <tcely@users.noreply.github.com>
Thu, 24 May 2018 15:32:44 +0000 (11:32 -0400)
This was a parallel build problem.
I had misunderstood what was actually happening when I first read the logs.

docs/Makefile.am

index 98418a1a82b1570b3a3892c70f2d1585240ad6ff..f7faa7d143c48e832840bd7fe432be414e932f0a 100644 (file)
@@ -62,8 +62,7 @@ EXTRA_DIST = $(MANPAGES_DIST)
 if HAVE_VIRTUALENV
 if !HAVE_MANPAGES
 $(MANPAGES_DIST): %: manpages/%.rst .venv
-       .venv/bin/python -msphinx -b man . mans $<
-       mv mans/$@ $@; rm -rf mans
+       outputdir="`mktemp -d mans.XXXX`"; .venv/bin/python -msphinx -b man . "$$outputdir" "$<" && mv "$${outputdir}/$@" "$@"; rm -rf "$$outputdir"
 endif # if !HAVE_MANPAGES
 
 .venv: requirements.txt