From 32ebb9e61e6f66bf5e689e37e6a61276b6b11597 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 28 Oct 2009 19:32:36 +0100 Subject: [PATCH] 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! --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ -- 2.30.2