diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2024-11-06 08:48:23 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-11-18 06:59:35 -0800 |
commit | 4a5e9aa5a29ed0266ac5701c9b7cf5cc96113aa1 (patch) | |
tree | 626eac0e157016a82d6f883312977735ca3f70bd /documentation | |
parent | 4c01aca2ecb73dafcbf7cb69d0bcb89f092818dc (diff) | |
download | poky-4a5e9aa5a29ed0266ac5701c9b7cf5cc96113aa1.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: c45b401d8a1794dec2c5bd42633b9b7fac44ed82)
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 |