forked from coreboot/coreboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation: Remove unused build targets
The options in conf.py for the following build targets are either commented out or contain example values, which suggests that there was no interest in them recently. Their comments also seem more like generated examples. * LaTeX * man pages * Texinfo In order to clean up our configs and scripts for the documentation, remove the configuration options from conf.py for these build targets. Also, remove the build targets responsible for generating a PDF file from Makefile. Don't touch Makefile.sphinx for now though as we usually wrap around it. We may bring these build targets back if there is real interest in them, but it seems only the HTML target was really used. Change-Id: I7df8ea886f94d9b25e8eeb0ccbc2a7392b96a575 Signed-off-by: Felix Singer <[email protected]> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77439 Reviewed-by: Martin L Roth <[email protected]> Tested-by: build bot (Jenkins) <[email protected]>
- Loading branch information
1 parent
f697fe0
commit 60be9fe
Showing
2 changed files
with
2 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,49 +4,16 @@ | |
# hacked together by Stefan Reinauer <[email protected]> | ||
# | ||
|
||
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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters