[Fontconfig] [PATCH] doc: fix parallel build failure

Mike Frysinger vapier at gentoo.org
Tue Oct 4 10:56:49 PDT 2011


The sgml file generation needs a local edit-sgml helper, but doesn't
depend on it, so when you build in parallel, it could fail like so:
...
make[2]: Entering directory '.../fontconfig/doc'
ln -s fontconfig-devel.sgml local-fontconfig-devel.sgml
rm -f fcatomic.sgml
rm -f fcblanks.sgml
rm -f fccache.sgml
./edit-sgml ./func.sgml < 'fcatomic.fncs' > fcatomic.sgml
  CC     edit-sgml.o
./edit-sgml ./func.sgml < 'fccache.fncs' > fccache.sgml
./edit-sgml ./func.sgml < 'fcblanks.fncs' > fcblanks.sgml
/bin/sh: ./edit-sgml: No such file or directory
make[2]: *** [fcatomic.sgml] Error 127
make[2]: *** Waiting for unfinished jobs....
/bin/sh: ./edit-sgml: No such file or directory
/bin/sh: ./edit-sgml: No such file or directory
make[2]: *** [fccache.sgml] Error 127
make[2]: *** [fcblanks.sgml] Error 127
make[2]: Leaving directory '.../fontconfig/doc'
...

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 doc/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 8d7d5c8..cfbe87a 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -102,7 +102,7 @@ if CROSS_COMPILING
 .fncs.sgml:
 	@echo Warning: cannot rebuild $@ when cross-compiling
 else
-.fncs.sgml:
+.fncs.sgml: $(noinst_PROGRAMS)
 	$(RM) $@
 	./edit-sgml$(EXEEXT) $(FNCS_TMPL) < '$<' > $*.sgml
 endif
-- 
1.7.6.1



More information about the Fontconfig mailing list