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-Url: https://git.tokkee.org/?a=commitdiff_plain;h=refs%2Fheads%2Fsh%2Fcollectd-4.6;p=collectd.git 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 c01998e8..bdc4dc41 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -920,7 +920,7 @@ EXTRA_DIST += collectd-email.pod collectd-exec.pod collectd-nagios.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; \ @@ -928,7 +928,7 @@ EXTRA_DIST += collectd-email.pod collectd-exec.pod collectd-nagios.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; \