Commit b1caceba authored by Germain C2S's avatar Germain C2S
Browse files

Makefile: make inkscape rule compatible with Inkscape 0 and 1

parent bce0e89d
......@@ -59,8 +59,18 @@ clean:
%.swf:%.pdf
pdf2swf $< && chmod -x $@
# Get Inkscape version
INKSCAPEVERSION = $(shell inkscape --version | cut -f2 -d" ")
# inkscapever -> x.yy.z
INKSCAPEVERSION_MAJOR = $(shell echo $(INKSCAPEVERSION) | cut -f1 -d.)
%.pdf:%.svg
inkscape --export-type=pdf -o $@ $<
if [ "$(INKSCAPEVERSION_MAJOR)" = "0" ]; \
then \
inkscape -f $< --export-pdf=$@ ; \
else \
inkscape --export-type=pdf -o $@ $< ; \
fi
%.pdf:%.odg
libreoffice --headless --convert-to pdf $< --outdir odgs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment