Skip to content

Instantly share code, notes, and snippets.

@mitukiii

mitukiii/Makefile

Created Dec 11, 2020
Embed
What would you like to do?
PlantUML で仕様書書いてビルドする的なやつの Makefile
SOURCES = $(shell find *.puml)
TARGETS = $(SOURCES:%.puml=%.svg)
k := $(if $(shell which plantuml),,$(error "No plantuml executable in PATH"))
all: clean $(TARGETS)
%.svg: %.puml
cat $< | plantuml -tsvg -pipe > $@
clean:
rm -f $(TARGETS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment