aboutsummaryrefslogtreecommitdiff
path: root/Documentation/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile37
1 files changed, 2 insertions, 35 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 4d08c932b4..ec1e1a4d35 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -4,49 +4,16 @@
# hacked together by Stefan Reinauer <stepan@openbios.org>
#
-PDFLATEX = pdflatex -t a4
BUILDDIR ?= _build
SPHINXOPTS ?= -j auto
export SPHINXOPTS
-FIGS=codeflow.pdf hypertransport.pdf
-
-all: sphinx corebootPortingGuide.pdf
-
-SVG2PDF=$(shell command -v svg2pdf)
-INKSCAPE=$(shell command -v inkscape)
-CONVERT=$(shell command -v 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
+all: sphinx
$(BUILDDIR):
mkdir -p $(BUILDDIR)
-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
-
sphinx: $(BUILDDIR)
$(MAKE) -f Makefile.sphinx html BUILDDIR="$(BUILDDIR)"
@@ -68,7 +35,7 @@ test:
-$(MAKE) -f Makefile.sphinx clean && $(MAKE) -K -f Makefile.sphinx doctest
help:
- @echo "all - Builds coreboot porting guide PDF (outdated)"
+ @echo "all - Builds all documentation targets"
@echo "sphinx - Builds html documentation in _build directory"
@echo "clean - Cleans intermediate files"
@echo "clean-sphinx - Removes sphinx output files"