diff --git a/docs/images/Makefile b/docs/images/Makefile index 59782050..a62d846e 100644 --- a/docs/images/Makefile +++ b/docs/images/Makefile @@ -1,16 +1,18 @@ BUILD_TARGETS = BUILD_TARGETS += swh-archive-copies.pdf swh-archive-copies.svg all: $(BUILD_TARGETS) - %.svg: %.dia - inkscape -l $@ $< - -%.pdf: %.dia - inkscape -A $@ $< + dia -e $@ $< +%.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)