aboutsummaryrefslogtreecommitdiff
path: root/documentation/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/Makefile')
-rw-r--r--documentation/Makefile31
1 files changed, 28 insertions, 3 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 4e4991adbe..264bc922a2 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -7,7 +7,7 @@ PDFLATEX=pdflatex -t a4
FIGS=codeflow.pdf hypertransport.pdf
-all: LinuxBIOS-AMD64.pdf
+all: LinuxBIOS-AMD64.pdf Kconfig.pdf
SVG2PDF=$(shell which svg2pdf)
INKSCAPE=$(shell which inkscape)
@@ -39,9 +39,34 @@ LinuxBIOS-AMD64.toc: $(FIGS) LinuxBIOS-AMD64.tex
LinuxBIOS-AMD64.pdf: $(FIGS) LinuxBIOS-AMD64.tex LinuxBIOS-AMD64.toc
$(PDFLATEX) LinuxBIOS-AMD64.tex
+Kconfig.pdf: Kconfig.tex mainboardkconfig.tex cpukconfig.tex socketfkconfig.tex
+ $(PDFLATEX) $<
+
+# quick, somebody! make me a macro!
+mainboardkconfig.tex: ../src/mainboard/Kconfig
+ echo '\begin{verbatim}' > $@
+ grep '^config' $< | awk '{print $2}' >>$@
+ echo '\end{verbatim}' >> $@
+
+skconfig.tex: ../src/mainboard/amd/serengeti_cheetah/Kconfig
+ echo '\begin{verbatim}' > $@
+ grep '^config' $< | awk '{print $2}' >>$@
+ echo '\end{verbatim}' >> $@
+
+cpukconfig.tex: ../src/cpu/Kconfig
+ echo '\begin{verbatim}' > $@
+ grep '^config' $< | awk '{print $2}' >>$@
+ echo '\end{verbatim}' >> $@
+
+socketfkconfig.tex: ../src/cpu/amd/socket_F/Kconfig
+ echo '\begin{verbatim}' > $@
+ grep '^config' $< | awk '{print $2}' >>$@
+ echo '\end{verbatim}' >> $@
+
+
clean:
- rm -f *.aux *.idx *.log *.toc *.out $(FIGS)
+ rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex
distclean: clean
- rm -f LinuxBIOS-AMD64.pdf
+ rm -f LinuxBIOS-AMD64.pdf mainboardkconfig.tex