vboot: Add support for recovery hash space in TPM
[coreboot.git] / Documentation / Makefile
blob96b66a998b6b097a0defcb2cdf3cf309ca1ef600
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 Kconfig.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 Kconfig.pdf: Kconfig.tex mainboardkconfig.tex cpukconfig.tex socketfkconfig.tex
43 $(PDFLATEX) $<
45 # quick, somebody! make me a macro!
46 mainboardkconfig.tex: ../src/mainboard/Kconfig
47 cat beginverbatim.tex > $@
48 grep '^config' $< | awk '{print $2}' >>$@
49 cat endverbatim.tex >> $@
51 skconfig.tex: ../src/mainboard/amd/serengeti_cheetah/Kconfig
52 cat beginverbatim.tex > $@
53 grep '^config' $< | awk '{print $2}' >>$@
54 cat endverbatim.tex >> $@
56 cpukconfig.tex: ../src/cpu/Kconfig
57 cat beginverbatim.tex > $@
58 grep '^config' $< | awk '{print $2}' >>$@
59 cat endverbatim.tex >> $@
61 socketfkconfig.tex: ../src/cpu/amd/socket_F/Kconfig
62 cat beginverbatim.tex > $@
63 grep '^config' $< | awk '{print $2}' >>$@
64 cat endverbatim.tex >> $@
66 clean:
67 rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex skconfig.tex cpukconfig.tex socketfkconfig.tex
69 distclean: clean
70 rm -f CorebootPortingGuide.pdf Kconfig.pdf