diff options
| author | Antonin Godard <antonin.godard@bootlin.com> | 2024-11-06 08:48:23 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-15 06:05:32 -0800 |
| commit | b1ac9e9c94a94672407500bcbf80af4b23b7994a (patch) | |
| tree | bcb90656e46360ccfb37636991733cbb16d27748 /documentation | |
| parent | 23affadda837f9249b1fd9e9086eac6a416e6683 (diff) | |
| download | poky-b1ac9e9c94a94672407500bcbf80af4b23b7994a.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: 1ecb50eacc6510e1b77215fd6af36b1f7ffdeabe)
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 04d72592c4..cb8d4dea85 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 | 51 | @rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js |
