From 1d4cebfe93f2af9a410513f020537e8bcd91c51c 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 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; \ -- 2.30.2