docs, build: Tolerate missing fig2dev
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 9 Oct 2012 16:59:58 +0000 (17:59 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 9 Oct 2012 16:59:58 +0000 (17:59 +0100)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
docs/Makefile

index 8806990c9626521b8923cae58fef26c3b5150503..e9f6c200c3058f582406f9ee827f447fb3643873 100644 (file)
@@ -42,7 +42,9 @@ txt: $(DOC_TXT)
 
 .PHONY: figs
 figs:
-       $(MAKE) -C figs
+       @set -e ; if which $(FIG2DEV) 1>/dev/null 2>/dev/null; then \
+       set -x; $(MAKE) -C figs ; else                   \
+       echo "fig2dev (transfig) not installed; skipping figs."; fi
 
 .PHONY: python-dev-docs
 python-dev-docs: