diff --git a/docs/images/Makefile b/docs/images/Makefile index ddc859daf3b0c1c6888808a395fe961751fefcd8..890d6fb994b49f5b0dfcbcc4387b20d2ee194445 100644 --- a/docs/images/Makefile +++ b/docs/images/Makefile @@ -6,12 +6,15 @@ BUILD_TARGETS += $(MERKLE_DAG) 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)