summaryrefslogtreecommitdiff
path: root/Documentation/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 17aec29450..19b1f80b0a 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -4,7 +4,8 @@
# hacked together by Stefan Reinauer <stepan@openbios.org>
#
-PDFLATEX=pdflatex -t a4
+PDFLATEX = pdflatex -t a4
+SPHINXDIR = _build
FIGS=codeflow.pdf hypertransport.pdf
@@ -32,6 +33,9 @@ else ifneq ($(strip $(CONVERT)),)
convert $< $@
endif
+$(SPHINXDIR):
+ mkdir -p $(SPHINXDIR)
+
corebootPortingGuide.toc: $(FIGS) corebootBuildingGuide.tex
# 2 times to make sure we have a current toc.
$(PDFLATEX) corebootBuildingGuide.tex
@@ -40,11 +44,11 @@ corebootPortingGuide.toc: $(FIGS) corebootBuildingGuide.tex
corebootPortingGuide.pdf: $(FIGS) corebootBuildingGuide.tex corebootPortingGuide.toc
$(PDFLATEX) corebootBuildingGuide.tex
-sphinx:
- $(MAKE) -f Makefile.sphinx html
+sphinx: $(SPHINXDIR)
+ $(MAKE) -f Makefile.sphinx html BUILDDIR="$(SPHINXDIR)""
clean-sphinx:
- $(MAKE) -f Makefile.sphinx clean
+ $(MAKE) -f Makefile.sphinx clean BUILDDIR="$(SPHINXDIR)"
clean: clean-sphinx
rm -f *.aux *.idx *.log *.toc *.out $(FIGS)
@@ -52,8 +56,8 @@ clean: clean-sphinx
distclean: clean
rm -f corebootPortingGuide.pdf
-livesphinx:
- $(MAKE) -f Makefile.sphinx livehtml SPHINXOPTS="$(SPHINXOPTS)"
+livesphinx: $(SPHINXDIR)
+ $(MAKE) -f Makefile.sphinx livehtml SPHINXOPTS="$(SPHINXOPTS)" BUILDDIR="$(SPHINXDIR)"
test:
@echo "Test for logging purposes - Failing tests will not fail the build"