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: LinuxBIOS-AMD64.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
)),)
19 else ifneq ($(strip $(INKSCAPE
)),)
20 inkscape
$< --export-pdf
=$@
21 else ifneq ($(strip $(CONVERT
)),)
25 hypertransport.pdf
: hypertransport.svg
26 ifneq ($(strip $(SVG2PDF
)),)
28 else ifneq ($(strip $(INKSCAPE
)),)
29 inkscape
$< --export-pdf
=$@
30 else ifneq ($(strip $(CONVERT
)),)
34 LinuxBIOS-AMD64.toc
: $(FIGS
) LinuxBIOS-AMD64.
tex
35 # 2 times to make sure we have a current toc.
36 $(PDFLATEX
) LinuxBIOS-AMD64.
tex
37 $(PDFLATEX
) LinuxBIOS-AMD64.
tex
39 LinuxBIOS-AMD64.pdf
: $(FIGS
) LinuxBIOS-AMD64.
tex LinuxBIOS-AMD64.toc
40 $(PDFLATEX
) LinuxBIOS-AMD64.
tex
42 Kconfig.pdf
: Kconfig.
tex mainboardkconfig.
tex cpukconfig.
tex socketfkconfig.
tex
45 # quick, somebody! make me a macro!
46 mainboardkconfig.
tex: ..
/src
/mainboard
/Kconfig
47 echo
'\begin{verbatim}' > $@
48 grep
'^config' $< | awk
'{print $2}' >>$@
49 echo
'\end{verbatim}' >> $@
51 skconfig.
tex: ..
/src
/mainboard
/amd
/serengeti_cheetah
/Kconfig
52 echo
'\begin{verbatim}' > $@
53 grep
'^config' $< | awk
'{print $2}' >>$@
54 echo
'\end{verbatim}' >> $@
56 cpukconfig.
tex: ..
/src
/cpu
/Kconfig
57 echo
'\begin{verbatim}' > $@
58 grep
'^config' $< | awk
'{print $2}' >>$@
59 echo
'\end{verbatim}' >> $@
61 socketfkconfig.
tex: ..
/src
/cpu
/amd
/socket_F
/Kconfig
62 echo
'\begin{verbatim}' > $@
63 grep
'^config' $< | awk
'{print $2}' >>$@
64 echo
'\end{verbatim}' >> $@
68 rm -f
*.aux
*.idx
*.log
*.toc
*.out
$(FIGS
) mainboardkconfig.
tex
71 rm -f LinuxBIOS-AMD64.pdf mainboardkconfig.
tex