build: fix doc generation errors in parallel builds
authorMans Rullgard <mans@mansr.com>
Tue, 27 Mar 2012 21:42:41 +0000 (22:42 +0100)
committerMans Rullgard <mans@mansr.com>
Wed, 28 Mar 2012 10:42:19 +0000 (11:42 +0100)
The $(dir) function used to construct OBJDIRS includes a trailing slash
in the names returned, which GNU make 3.82 does not match to the
slash-less 'doc' in the documentation dependencies, causing parallel
build to fail.  Adding a slash fixes this and still works with make
3.81.

Signed-off-by: Mans Rullgard <mans@mansr.com>
doc/Makefile

index ffb3c5c..15e7323 100644 (file)
@@ -40,7 +40,7 @@ doc/%.1: TAG = MAN
 doc/%.1: doc/%.pod $(GENTEXI)
        $(M)pod2man --section=1 --center=" " --release=" " $< > $@
 
-$(DOCS): | doc
+$(DOCS): | doc/
 
 install-progs-$(CONFIG_DOC): install-man