Skip to content

Instantly share code, notes, and snippets.

@miketheman
Created November 22, 2021 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketheman/ef3b021d49a09b609fc39bf86757cdf9 to your computer and use it in GitHub Desktop.
Save miketheman/ef3b021d49a09b609fc39bf86757cdf9 to your computer and use it in GitHub Desktop.
Makefile with targets to generate static renderings from PlantUML sources
DIAGRAMS := $(wildcard *.puml */*puml)
SVGS := $(DIAGRAMS:.puml=.svg)
PNGS := $(DIAGRAMS:.puml=.png)
all: $(SVGS) $(PNGS)
%.png: %.puml
plantuml -tpng "$<"
%.svg: %.puml
plantuml -tsvg "$<"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment