Skip to content

Instantly share code, notes, and snippets.

@hidaruma
Created June 6, 2020 17:41
Embed
What would you like to do?
Change args if Inkscape version is 1.0
INKSCAPE_VERSION =$(shell inkscape --version | cut -f 2 --delim=" ")
%.png %.svg:
ifeq '${INKSCAPE_VERSION}' "1.0"
inkscape -D --export-filename=$@ $<-tmp.svg
else
inkscape -D --export-png=$@ $<-tmp.svg
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment