summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2009-05-12 14:24:25 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2009-05-12 14:24:25 +0000
commit67ee8f86fb317e7faeb4772b28f28116efdf2e43 (patch)
tree07b7baad6870a7f4b9a53f61fc13be5be9c6b1f8 /documentation
parent019b5f4230c8cbccbe0d513fe19eae43ea4c2d16 (diff)
downloadcoreboot-67ee8f86fb317e7faeb4772b28f28116efdf2e43.tar.xz
There's no 'svg2pdf' in Debian AFAICT, probably the same problem on
other systems too. So, check for svg2pdf, convert, and inkscape and use the first one that is found to convert the SVG files to PDF. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4275 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 1c01d577b0..4e4991adbe 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -9,12 +9,27 @@ FIGS=codeflow.pdf hypertransport.pdf
all: LinuxBIOS-AMD64.pdf
+SVG2PDF=$(shell which svg2pdf)
+INKSCAPE=$(shell which inkscape)
+CONVERT=$(shell which convert)
codeflow.pdf: codeflow.svg
+ifneq ($(strip $(SVG2PDF)),)
svg2pdf $< $@
+else ifneq ($(strip $(INKSCAPE)),)
+ inkscape $< --export-pdf=$@
+else ifneq ($(strip $(CONVERT)),)
+ convert $< $@
+endif
hypertransport.pdf: hypertransport.svg
+ifneq ($(strip $(SVG2PDF)),)
svg2pdf $< $@
+else ifneq ($(strip $(INKSCAPE)),)
+ inkscape $< --export-pdf=$@
+else ifneq ($(strip $(CONVERT)),)
+ convert $< $@
+endif
LinuxBIOS-AMD64.toc: $(FIGS) LinuxBIOS-AMD64.tex
# 2 times to make sure we have a current toc.
@@ -30,4 +45,3 @@ clean:
distclean: clean
rm -f LinuxBIOS-AMD64.pdf
-