67ee8f86fb
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
47 lines
1 KiB
Makefile
47 lines
1 KiB
Makefile
#
|
|
# Makefile for coreboot paper.
|
|
# hacked together by Stefan Reinauer <stepan@openbios.org>
|
|
#
|
|
|
|
PDFLATEX=pdflatex -t a4
|
|
|
|
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.
|
|
$(PDFLATEX) LinuxBIOS-AMD64.tex
|
|
$(PDFLATEX) LinuxBIOS-AMD64.tex
|
|
|
|
LinuxBIOS-AMD64.pdf: $(FIGS) LinuxBIOS-AMD64.tex LinuxBIOS-AMD64.toc
|
|
$(PDFLATEX) LinuxBIOS-AMD64.tex
|
|
|
|
clean:
|
|
rm -f *.aux *.idx *.log *.toc *.out $(FIGS)
|
|
|
|
distclean: clean
|
|
rm -f LinuxBIOS-AMD64.pdf
|
|
|