2003-11-22 16:15:47 +01:00
|
|
|
#
|
2009-04-18 16:18:20 +02:00
|
|
|
# Makefile for coreboot paper.
|
2003-11-22 16:15:47 +01:00
|
|
|
# hacked together by Stefan Reinauer <stepan@openbios.org>
|
|
|
|
#
|
|
|
|
|
|
|
|
PDFLATEX=pdflatex -t a4
|
|
|
|
|
|
|
|
FIGS=codeflow.pdf hypertransport.pdf
|
|
|
|
|
2018-09-25 23:15:16 +02:00
|
|
|
all: corebootPortingGuide.pdf
|
2003-11-22 16:15:47 +01:00
|
|
|
|
2009-05-12 16:24:25 +02:00
|
|
|
SVG2PDF=$(shell which svg2pdf)
|
|
|
|
INKSCAPE=$(shell which inkscape)
|
|
|
|
CONVERT=$(shell which convert)
|
2003-11-22 16:15:47 +01:00
|
|
|
|
2009-04-21 23:45:11 +02:00
|
|
|
codeflow.pdf: codeflow.svg
|
2009-05-12 16:24:25 +02:00
|
|
|
ifneq ($(strip $(SVG2PDF)),)
|
2009-04-21 23:45:11 +02:00
|
|
|
svg2pdf $< $@
|
2009-05-12 16:24:25 +02:00
|
|
|
else ifneq ($(strip $(INKSCAPE)),)
|
|
|
|
inkscape $< --export-pdf=$@
|
|
|
|
else ifneq ($(strip $(CONVERT)),)
|
|
|
|
convert $< $@
|
|
|
|
endif
|
2003-11-22 16:15:47 +01:00
|
|
|
|
2009-04-21 23:45:11 +02:00
|
|
|
hypertransport.pdf: hypertransport.svg
|
2009-05-12 16:24:25 +02:00
|
|
|
ifneq ($(strip $(SVG2PDF)),)
|
2009-04-21 23:45:11 +02:00
|
|
|
svg2pdf $< $@
|
2009-05-12 16:24:25 +02:00
|
|
|
else ifneq ($(strip $(INKSCAPE)),)
|
|
|
|
inkscape $< --export-pdf=$@
|
|
|
|
else ifneq ($(strip $(CONVERT)),)
|
|
|
|
convert $< $@
|
|
|
|
endif
|
2003-11-22 16:15:47 +01:00
|
|
|
|
2017-06-04 04:16:01 +02:00
|
|
|
corebootPortingGuide.toc: $(FIGS) corebootBuildingGuide.tex
|
2003-11-22 16:15:47 +01:00
|
|
|
# 2 times to make sure we have a current toc.
|
2017-06-04 04:16:01 +02:00
|
|
|
$(PDFLATEX) corebootBuildingGuide.tex
|
|
|
|
$(PDFLATEX) corebootBuildingGuide.tex
|
2003-11-22 16:15:47 +01:00
|
|
|
|
2017-06-04 04:16:01 +02:00
|
|
|
corebootPortingGuide.pdf: $(FIGS) corebootBuildingGuide.tex corebootPortingGuide.toc
|
|
|
|
$(PDFLATEX) corebootBuildingGuide.tex
|
2003-11-22 16:15:47 +01:00
|
|
|
|
2018-04-19 16:23:56 +02:00
|
|
|
sphinx:
|
|
|
|
$(MAKE) -f Makefile.sphinx html
|
|
|
|
|
|
|
|
clean-sphinx:
|
|
|
|
$(MAKE) -f Makefile.sphinx clean
|
|
|
|
|
|
|
|
clean: clean-sphinx
|
2018-09-25 23:15:16 +02:00
|
|
|
rm -f *.aux *.idx *.log *.toc *.out $(FIGS)
|
2003-11-22 16:15:47 +01:00
|
|
|
|
|
|
|
distclean: clean
|
2018-09-25 23:15:16 +02:00
|
|
|
rm -f corebootPortingGuide.pdf
|
2018-08-19 01:20:16 +02:00
|
|
|
|
|
|
|
livesphinx:
|
|
|
|
$(MAKE) -f Makefile.sphinx livehtml
|