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
|
|
|
|
|
2009-08-12 17:00:51 +02:00
|
|
|
all: LinuxBIOS-AMD64.pdf Kconfig.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
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-08-12 17:00:51 +02:00
|
|
|
Kconfig.pdf: Kconfig.tex mainboardkconfig.tex cpukconfig.tex socketfkconfig.tex
|
|
|
|
$(PDFLATEX) $<
|
|
|
|
|
|
|
|
# quick, somebody! make me a macro!
|
|
|
|
mainboardkconfig.tex: ../src/mainboard/Kconfig
|
2009-08-12 22:25:24 +02:00
|
|
|
cat beginverbatim.tex > $@
|
2009-08-12 17:00:51 +02:00
|
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
2009-08-12 22:25:24 +02:00
|
|
|
cat endverbatim.tex >> $@
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
skconfig.tex: ../src/mainboard/amd/serengeti_cheetah/Kconfig
|
2009-08-12 22:25:24 +02:00
|
|
|
cat beginverbatim.tex > $@
|
2009-08-12 17:00:51 +02:00
|
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
2009-08-12 22:25:24 +02:00
|
|
|
cat endverbatim.tex >> $@
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
cpukconfig.tex: ../src/cpu/Kconfig
|
2009-08-12 22:25:24 +02:00
|
|
|
cat beginverbatim.tex > $@
|
2009-08-12 17:00:51 +02:00
|
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
2009-08-12 22:25:24 +02:00
|
|
|
cat endverbatim.tex >> $@
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
socketfkconfig.tex: ../src/cpu/amd/socket_F/Kconfig
|
2009-08-12 22:25:24 +02:00
|
|
|
cat beginverbatim.tex > $@
|
2009-08-12 17:00:51 +02:00
|
|
|
grep '^config' $< | awk '{print $2}' >>$@
|
2009-08-12 22:25:24 +02:00
|
|
|
cat endverbatim.tex >> $@
|
2009-08-12 17:00:51 +02:00
|
|
|
|
|
|
|
|
2003-11-22 16:15:47 +01:00
|
|
|
clean:
|
2009-08-12 22:25:24 +02:00
|
|
|
rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex skconfig.tex cpukconfig.tex socketkconfig.tex
|
2003-11-22 16:15:47 +01:00
|
|
|
|
|
|
|
distclean: clean
|
2009-08-12 22:25:24 +02:00
|
|
|
rm -f LinuxBIOS-AMD64.pdf
|
2003-11-22 16:15:47 +01:00
|
|
|
|