summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2024-11-06 08:48:23 +0100
committerSteve Sakoman <steve@sakoman.com>2024-11-26 05:37:10 -0800
commitab07d1a341056360eca781a3f4d33104da9d2ed9 (patch)
treea2844291a0933c7a39c255dd06f4959b3b211708 /documentation
parentbcd7f0eeed790472b81f584233469ee371db0524 (diff)
downloadpoky-ab07d1a341056360eca781a3f4d33104da9d2ed9.tar.gz
doc: Makefile: remove inkscape, replace by rsvg-convert
Remove inkscape as it is not part of meta/, and use librsvg so we can ship it in a buildtools tarball for the autobuilder workers. (From yocto-docs rev: 65db816385dd985bfc3bc895102b25e9ea5d9adf) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> (cherry picked from commit 0caa432b888209bd80443df230143761e1faf415) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 0bd9db5eae..541390b2a1 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -13,8 +13,8 @@ SPHINXLINTDOCS ?= $(SOURCEDIR)
13IMAGEDIRS = */svg 13IMAGEDIRS = */svg
14BUILDDIR = _build 14BUILDDIR = _build
15DESTDIR = final 15DESTDIR = final
16SVG2PNG = inkscape 16SVG2PNG = rsvg-convert
17SVG2PDF = inkscape 17SVG2PDF = rsvg-convert
18 18
19ifeq ($(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi),0) 19ifeq ($(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi),0)
20$(error "The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed") 20$(error "The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed")
@@ -41,11 +41,11 @@ PNGs := $(foreach dir, $(IMAGEDIRS), $(patsubst %.svg,%.png,$(wildcard $(SOURCED
41 41
42# Pattern rule for converting SVG to PDF 42# Pattern rule for converting SVG to PDF
43%.pdf : %.svg 43%.pdf : %.svg
44 $(SVG2PDF) --export-filename=$@ $< 44 $(SVG2PDF) --format=Pdf --output=$@ $<
45 45
46# Pattern rule for converting SVG to PNG 46# Pattern rule for converting SVG to PNG
47%.png : %.svg 47%.png : %.svg
48 $(SVG2PNG) --export-filename=$@ $< 48 $(SVG2PNG) --format=Png --output=$@ $<
49 49
50clean: 50clean:
51 @rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js releases.rst 51 @rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js releases.rst