summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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