summaryrefslogtreecommitdiff
path: root/documentation/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/Makefile')
-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
-