diff --git a/doc/api/diagram_source/Makefile b/doc/api/diagram_source/Makefile index 526cdfc..f337dcd 100755 --- a/doc/api/diagram_source/Makefile +++ b/doc/api/diagram_source/Makefile @@ -13,4 +13,13 @@ clean: rm -f $(DIAGRAMS) $(OUT_DIR)/%$(POSTFIX).png: $(SRC_DIR)/%.svg - inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@ + if inkscape --version | grep -q "Inkscape 0"; then \ + inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@; \ + else \ + inkscape \ + --export-area-drawing \ + --export-background=white \ + --export-background-opacity=1.0 \ + --export-file=$(DIR)/$@ \ + $(DIR)/$<; \ + fi