diff --git a/make-includes/standard_rules.make b/make-includes/standard_rules.make index 9dc479e..308e79c 100644 --- a/make-includes/standard_rules.make +++ b/make-includes/standard_rules.make @@ -271,3 +271,19 @@ %.css: %.scss $(SASS) $< $@ +# +# PNG, SVG, PDF, TikZ from PlantUML +# +%.png %-web.png %-print.png: %.plantuml + $(PLANTUML) -tpng -output "$(IMGDIR)" $< +# +%.svg: %.plantuml + $(PLANTUML) -tsvg -output "$(IMGDIR)" $< +# +%.pdf %-print.pdf: %.plantuml + $(PLANTUML) -tsvg $< + $(RSVG_CONVERT) -f pdf $*.svg | $(PDFCROP) - $(IMGDIR)/$@ + @$(RM_F) $*.svg +# +%.tex: %.plantuml + $(PLANTUML) -tlatex -pipe < $< > $(IMGDIR)/$@