diff --git a/docs/images/Makefile b/docs/images/Makefile --- a/docs/images/Makefile +++ b/docs/images/Makefile @@ -6,12 +6,15 @@ all: $(BUILD_TARGETS) - %.svg: %.dia - inkscape -l $@ $< + dia -e $@ $< -%.pdf: %.dia - inkscape -A $@ $< +%.pdf: %.svg + set -e; if [ $$(inkscape --version 2>/dev/null | grep -Eo '[0-9]+' | head -1) -gt 0 ]; then \ + inkscape -o $@ $< ; \ + else \ + inkscape -A $@ $< ; \ + fi clean: -rm -f $(BUILD_TARGETS)