diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2024-11-06 08:48:23 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-11-26 05:37:10 -0800 |
commit | ab07d1a341056360eca781a3f4d33104da9d2ed9 (patch) | |
tree | a2844291a0933c7a39c255dd06f4959b3b211708 /documentation | |
parent | bcd7f0eeed790472b81f584233469ee371db0524 (diff) | |
download | poky-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/Makefile | 8 |
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) | |||
13 | IMAGEDIRS = */svg | 13 | IMAGEDIRS = */svg |
14 | BUILDDIR = _build | 14 | BUILDDIR = _build |
15 | DESTDIR = final | 15 | DESTDIR = final |
16 | SVG2PNG = inkscape | 16 | SVG2PNG = rsvg-convert |
17 | SVG2PDF = inkscape | 17 | SVG2PDF = rsvg-convert |
18 | 18 | ||
19 | ifeq ($(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi),0) | 19 | ifeq ($(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 | ||
50 | clean: | 50 | clean: |
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 |