From: Sebastian Harl Date: Wed, 28 Oct 2009 18:32:36 +0000 (+0100) Subject: src/Makefile: Support parallel builds when creating the manpages. X-Git-Tag: collectd-4.7.5~13 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=32ebb9e61e6f66bf5e689e37e6a61276b6b11597 src/Makefile: Support parallel builds when creating the manpages. A temporary file name is used when creating the manpages. So far, a static file name had been used for that, thus causing race conditions. Now, a unique suffix (PID) is used to fix that. Thanks to BC^bd for reporting that on IRC! --- diff --git a/src/Makefile.am b/src/Makefile.am index 7b13029d..75f88ebd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1029,7 +1029,7 @@ EXTRA_DIST += collectd.conf.pod \ .pod.1: pod2man --release=$(VERSION) --center=$(PACKAGE) $< \ - >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true + >.pod2man.tmp.$$$$ 2>/dev/null && mv -f .pod2man.tmp.$$$$ $@ || true @if grep '\' $@ >/dev/null 2>&1; \ then \ echo "$@ has some POD errors!"; false; \ @@ -1037,7 +1037,7 @@ EXTRA_DIST += collectd.conf.pod \ .pod.5: pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< \ - >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true + >.pod2man.tmp.$$$$ 2>/dev/null && mv -f .pod2man.tmp.$$$$ $@ || true @if grep '\' $@ >/dev/null 2>&1; \ then \ echo "$@ has some POD errors!"; false; \