X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=documentation%2FMakefile;h=84ac0b58f14b1cea89e64a5047a3639a7e39c798;hb=18b02360b9dba6ca61538923e27b5ba68a2b3299;hp=98914914dd1cc63267147c30aeed53c5e98dd040;hpb=d2a5a5abef29e61b261a4e37fb68239074c10bcf;p=coreboot.git diff --git a/documentation/Makefile b/documentation/Makefile index 98914914d..84ac0b58f 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -7,16 +7,31 @@ 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) +CONVERT=$(shell which convert) -codeflow.pdf: codeflow.eps - epstopdf $< -o=$@ +codeflow.pdf: codeflow.svg +ifneq ($(strip $(SVG2PDF)),) + svg2pdf $< $@ +else ifneq ($(strip $(INKSCAPE)),) + inkscape $< --export-pdf=$@ +else ifneq ($(strip $(CONVERT)),) + convert $< $@ +endif -hypertransport.pdf: hypertransport.eps - epstopdf $< -o=$@ +hypertransport.pdf: hypertransport.svg +ifneq ($(strip $(SVG2PDF)),) + svg2pdf $< $@ +else ifneq ($(strip $(INKSCAPE)),) + inkscape $< --export-pdf=$@ +else ifneq ($(strip $(CONVERT)),) + convert $< $@ +endif -LinuxBIOS-AMD64.toc: $(FIGS) LinuxBIOS-AMD64.tex +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 @@ -24,10 +39,33 @@ 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 + 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) + rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex skconfig.tex cpukconfig.tex socketfkconfig.tex distclean: clean - rm -f LinuxBIOS-AMD64.pdf - - + rm -f LinuxBIOS-AMD64.pdf Kconfig.pdf +