summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Yokosawa <akiyks@gmail.com>2024-01-05 18:53:21 +0900
committerPaul E. McKenney <paulmck@kernel.org>2024-01-07 13:36:29 -0800
commitc26b747cb01ce125e72c72ac317fbf4f828f39db (patch)
tree07301a358c16f3f0228632ae1251e8d505866eb1
parenta40ad326ea2245439fc3464d167e64dbc05a6813 (diff)
downloadperfbook-c26b747cb01ce125e72c72ac317fbf4f828f39db.tar.gz
Makefile: Use rsvg-convert anyway if no inkscape is found
Even if rsvg-convert is too young and its SVG --> PDF conversion sometimes results in poor-looking figures, using it is much better than giving up the conversion at all. Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3844c37b..46c2bfb4 100644
--- a/Makefile
+++ b/Makefile
@@ -126,6 +126,9 @@ ifdef RSVG_CONVERT
ifeq ($(RSVG_CONVERT_ACCEPTABLE),1)
RSVG_CONVERT_GOOD := 1
endif
+ ifndef INKSCAPE
+ RSVG_CONVERT_GOOD := 1
+ endif
RSVG_CONVERT_PDFFMT := $(shell echo $(RSVG_CONVERT_VER_MINOR) $(RSVG_CONVERT_PDFFMT_VER) | awk '{if ($$1 >= $$2) print 1;}')
ifeq ($(RSVG_CONVERT_GOOD),1)
SVG_PDF_CONVERTER = (rsvg-convert v$(RSVG_CONVERT_VER))