chiark / gitweb /
Makefile: Quieten inkscape message by default
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Apr 2021 16:00:07 +0000 (17:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Apr 2021 16:15:31 +0000 (17:15 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 4c35aa009c9cd3ea7d0a308c448b44c72c3be3c5..8eeef04b51a606c361aaaed619f3d31ebc46f78e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,9 +54,10 @@ SPHINXBUILD   = sphinx-build
 
 ifndef INKSCAPE_EXTENSIONS
 INKSCAPE ?= inkscape
+INKSCAPE_SDD_QUIETEN ?= 2>/dev/null
 # inkscape 0.92.4: --extension-directory works, no --system-data-directory
 # inkscape 1.0.2: --system-data-directory, no --extension-directory
-INKSCAPE_EXTENSIONS := $(shell set -e; { sdd=$$( $(INKSCAPE) --system-data-directory ) && echo "$$sdd/extensions"; } || $(INKSCAPE) --extension-directory )
+INKSCAPE_EXTENSIONS := $(shell set -e; { sdd=$$( $(INKSCAPE) --system-data-directory $(INKSCAPE_SDD_QUIETEN) ) && echo "$$sdd/extensions"; } || $(INKSCAPE) --extension-directory )
 endif
 RECOLOUR_SVG ?= ./run-inkscape-extension $(INKSCAPE_EXTENSIONS)/color_replace.py