mb/google: Add OEM product names for various boards
[coreboot.git] / Documentation / Makefile
blobb4fe8df0abe6f4e11851c3d7c9ba1e1b66fa5278
2 # Makefile for coreboot paper.
3 # hacked together by Stefan Reinauer <stepan@openbios.org>
6 PDFLATEX=pdflatex -t a4
8 FIGS=codeflow.pdf hypertransport.pdf
10 all: corebootPortingGuide.pdf
12 SVG2PDF=$(shell which svg2pdf)
13 INKSCAPE=$(shell which inkscape)
14 CONVERT=$(shell which convert)
16 codeflow.pdf: codeflow.svg
17 ifneq ($(strip $(SVG2PDF)),)
18 svg2pdf $< $@
19 else ifneq ($(strip $(INKSCAPE)),)
20 inkscape $< --export-pdf=$@
21 else ifneq ($(strip $(CONVERT)),)
22 convert $< $@
23 endif
25 hypertransport.pdf: hypertransport.svg
26 ifneq ($(strip $(SVG2PDF)),)
27 svg2pdf $< $@
28 else ifneq ($(strip $(INKSCAPE)),)
29 inkscape $< --export-pdf=$@
30 else ifneq ($(strip $(CONVERT)),)
31 convert $< $@
32 endif
34 corebootPortingGuide.toc: $(FIGS) corebootBuildingGuide.tex
35 # 2 times to make sure we have a current toc.
36 $(PDFLATEX) corebootBuildingGuide.tex
37 $(PDFLATEX) corebootBuildingGuide.tex
39 corebootPortingGuide.pdf: $(FIGS) corebootBuildingGuide.tex corebootPortingGuide.toc
40 $(PDFLATEX) corebootBuildingGuide.tex
42 sphinx:
43 $(MAKE) -f Makefile.sphinx html
45 clean-sphinx:
46 $(MAKE) -f Makefile.sphinx clean
48 clean: clean-sphinx
49 rm -f *.aux *.idx *.log *.toc *.out $(FIGS)
51 distclean: clean
52 rm -f corebootPortingGuide.pdf
54 livesphinx:
55 $(MAKE) -f Makefile.sphinx livehtml SPHINXOPTS="$(SPHINXOPTS)"