[Pkg-lirc-maint] [PATCH 12/13] fix building manpages in parallel
Stefan Lippers-Hollmann
s.l-h at gmx.de
Fri Dec 12 23:00:15 UTC 2014
Avoid race conditions when building manpages in parallel.
Signed-off-by: Stefan Lippers-Hollmann <s.l-h at gmx.de>
---
This was a very apparent problem in lirc 0.9.1, while I haven't seen
this triggering in 0.9.2+ yet, but this change is safe either way and
follows the coding style used elsewhere (a simple mkdir -p without the
test condition would work the same way).
doc/Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 8a05a7d..854192e 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -77,7 +77,7 @@ $(generated_html): $(html_sources)
$(SED) -i "s/@version@/$(VERSION)/" $@
$(manpage_html): $(nodist_man_MANS)
- -test -d man-html || mkdir man-html
+ -test -d man-html || mkdir -p man-html
cat $(srcdir)/html-source/head.html > $@
src=$$(echo $(srcdir)/$@ | \
$(SED) -e 's/man-html/man-source/' -e 's/\.html//'); \
@@ -90,7 +90,7 @@ $(manpage_html): $(nodist_man_MANS)
cat $(srcdir)/html-source/foot.html >> $@
$(nodist_man_MANS): $(man_sources)
- -test -d man || mkdir man
+ -test -d man || mkdir -p man
src=$$(echo $(srcdir)/$@ | $(SED) 's|/man/|/man-source/|'); \
cp $$src $@
$(SED) -i "s/@version@/$(VERSION)/" $@
--
2.1.3
More information about the Pkg-lirc-maint
mailing list