blob: f7392109642d2dea2904f11f7f2747dd874efb0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/logo/Makefile b/logo/Makefile
index 5b33d9c..115837e 100644
--- a/logo/Makefile
+++ b/logo/Makefile
@@ -4,10 +4,17 @@ WIDTH := 200
HEIGHT := 200
ADDITIONAL_OPTS :=
+INKSCAPE_VERSION_MAIN = $(shell inkscape --version 2>/dev/null | grep -e 'Inkscape\s*[0-9.]\+' | sed -e 's#^.*Inkscape\s*\([0-9]\+\)\..*$$#\1#')
+ifeq ($(INKSCAPE_VERSION_MAIN),0)
+ INKSCAPE_EXPORT_PNG_OPT = --export-png
+else
+ INKSCAPE_EXPORT_PNG_OPT = --export-filename
+endif
+
all: $(OUT_NAME)
%.png: logo.svg
- $(INKSCAPE) --export-png=$@ $(ADDITIONAL_OPTS) --export-area-drawing --export-width=$(WIDTH) --export-height=$(HEIGHT) $<
+ $(INKSCAPE) $(INKSCAPE_EXPORT_PNG_OPT)=$@ $(ADDITIONAL_OPTS) --export-area-drawing --export-width=$(WIDTH) --export-height=$(HEIGHT) $<
clean:
rm -f $(OUT_NAME)
|