coreboot-v2/documentation/Makefile
<<
>>
Prefs
   1#
   2# Makefile for coreboot paper.
   3# hacked together by Stefan Reinauer <stepan@openbios.org>
   4#
   5
   6PDFLATEX=pdflatex -t a4
   7
   8FIGS=codeflow.pdf hypertransport.pdf
   9
  10all: LinuxBIOS-AMD64.pdf Kconfig.pdf
  11
  12SVG2PDF=$(shell which svg2pdf)
  13INKSCAPE=$(shell which inkscape)
  14CONVERT=$(shell which convert)
  15
  16codeflow.pdf: codeflow.svg
  17ifneq ($(strip $(SVG2PDF)),)
  18        svg2pdf $< $@
  19else ifneq ($(strip $(INKSCAPE)),)
  20        inkscape $< --export-pdf=$@
  21else ifneq ($(strip $(CONVERT)),)
  22        convert $< $@
  23endif
  24
  25hypertransport.pdf: hypertransport.svg
  26ifneq ($(strip $(SVG2PDF)),)
  27        svg2pdf $< $@
  28else ifneq ($(strip $(INKSCAPE)),)
  29        inkscape $< --export-pdf=$@
  30else ifneq ($(strip $(CONVERT)),)
  31        convert $< $@
  32endif
  33
  34LinuxBIOS-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
  38
  39LinuxBIOS-AMD64.pdf: $(FIGS) LinuxBIOS-AMD64.tex LinuxBIOS-AMD64.toc
  40        $(PDFLATEX) LinuxBIOS-AMD64.tex
  41
  42Kconfig.pdf: Kconfig.tex mainboardkconfig.tex cpukconfig.tex socketfkconfig.tex
  43        $(PDFLATEX) $<
  44
  45# quick, somebody! make me a macro!
  46mainboardkconfig.tex: ../src/mainboard/Kconfig
  47        cat beginverbatim.tex  > $@
  48        grep '^config' $< | awk '{print $2}'  >>$@
  49        cat endverbatim.tex  >> $@
  50
  51skconfig.tex: ../src/mainboard/amd/serengeti_cheetah/Kconfig
  52        cat beginverbatim.tex  > $@
  53        grep '^config' $< | awk '{print $2}'  >>$@
  54        cat endverbatim.tex  >> $@
  55
  56cpukconfig.tex: ../src/cpu/Kconfig
  57        cat beginverbatim.tex  > $@
  58        grep '^config' $< | awk '{print $2}'  >>$@
  59        cat endverbatim.tex  >> $@
  60
  61socketfkconfig.tex: ../src/cpu/amd/socket_F/Kconfig
  62        cat beginverbatim.tex  > $@
  63        grep '^config' $< | awk '{print $2}'  >>$@
  64        cat endverbatim.tex  >> $@
  65
  66clean:
  67        rm -f *.aux *.idx *.log *.toc *.out $(FIGS) mainboardkconfig.tex skconfig.tex cpukconfig.tex socketfkconfig.tex
  68
  69distclean: clean
  70        rm -f LinuxBIOS-AMD64.pdf Kconfig.pdf
  71
  72
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.