diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-05-05 13:10:04 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-05-06 19:09:47 +0200 |
commit | 4d8b843d3740cc90c98f181d49f0d4a67cb0a1b7 (patch) | |
tree | 19306425b170975b5317a63a84b0e6f4b94b5f40 /Documentation/Makefile | |
parent | 29ed46caccd5cea8401c5d133895fa3a9d6f5030 (diff) |
Rename documentation -> Documentation
In order to be closer to the Linux kernel source tree
structure, rename documentation to Documentation.
Change-Id: I8690f666638ef352d201bd3c3dc1923b0d24cb12
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/10110
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r-- | Documentation/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile new file mode 100644 index 0000000000..1e00444bfa --- /dev/null +++ b/Documentation/Makefile @@ -0,0 +1,71 @@ +# +# Makefile for coreboot paper. +# hacked together by Stefan Reinauer <stepan@openbios.org> +# + +PDFLATEX=pdflatex -t a4 + +FIGS=codeflow.pdf hypertransport.pdf + +all: CorebootPortingGuide.pdf Kconfig.pdf + +SVG2PDF=$(shell which svg2pdf) +INKSCAPE=$(shell which inkscape) +CONVERT=$(shell which convert) + +codeflow.pdf: codeflow.svg +ifneq ($(strip $(SVG2PDF)),) + svg2pdf $< $@ +else ifneq ($(strip $(INKSCAPE)),) + inkscape $< --export-pdf=$@ +else ifneq ($(strip $(CONVERT)),) + convert $< $@ +endif + +hypertransport.pdf: hypertransport.svg +ifneq ($(strip $(SVG2PDF)),) + svg2pdf $< $@ +else ifneq ($(strip $(INKSCAPE)),) + inkscape $< --export-pdf=$@ +else ifneq ($(strip $(CONVERT)),) + convert $< $@ +endif + +CorebootPortingGuide.toc: $(FIGS) CorebootBuildingGuide.tex + # 2 times to make sure we have a current toc. + $(PDFLATEX) CorebootBuildingGuide.tex + $(PDFLATEX) CorebootBuildingGuide.tex + +CorebootPortingGuide.pdf: $(FIGS) CorebootBuildingGuide.tex CorebootPortingGuide.toc + $(PDFLATEX) CorebootBuildingGuide.tex + +Kconfig.pdf: Kconfig.tex mainboardkconfig.tex cpukconfig.tex socketfkconfig.tex + $(PDFLATEX) $< + +# quick, somebody! make me a macro! +mainboardkconfig.tex: ../src/mainboard/Kconfig + cat beginverbatim.tex > $@ + grep '^config' $< | awk '{print $2}' >>$@ + cat endverbatim.tex >> $@ + +skconfig.tex: ../src/mainboard/amd/serengeti_cheetah/Kconfig + cat beginverbatim.tex > $@ + grep '^config' $< | awk '{print $2}' >>$@ + cat endverbatim.tex >> $@ + +cpukconfig.tex: ../src/cpu/Kconfig + cat beginverbatim.tex > $@ + grep '^config' $< | awk '{print $2}' >>$@ + cat endverbatim.tex >> $@ + +socketfkconfig.tex: ../src/cpu/amd/socket_F/Kconfig + cat beginverbatim.tex > $@ + grep '^config' $< | awk '{print $2}' >>$@ + cat endverbatim.tex >> $@ + +clean: + rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex skconfig.tex cpukconfig.tex socketfkconfig.tex + +distclean: clean + rm -f CorebootPortingGuide.pdf Kconfig.pdf + |