OSDN Git Service

build: fix examples compilation when EXESUF is not empty
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Sun, 9 Feb 2014 23:23:28 +0000 (00:23 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Mon, 10 Feb 2014 12:23:21 +0000 (13:23 +0100)
Due to a wrong substitution doc/examples is not added as a prerequisite
for the objects of the example programs. This results in compiler error
due to the non-existing output directory.

Bug-Id: 636

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
doc/Makefile

index 4228c54..e92e72f 100644 (file)
@@ -54,7 +54,7 @@ doc/%.1: doc/%.pod $(GENTEXI)
        $(M)pod2man --section=1 --center=" " --release=" " $< > $@
 
 $(DOCS) doc/doxy/html: | doc/
-$(DOC_EXAMPLES:%=%.o): | doc/examples
+$(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples
 OBJDIRS += doc/examples
 
 DOXY_TEMPLATES  = doxy_stylesheet.css footer.html header.html