Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Created December 11, 2020 14:01
Show Gist options
  • Save rummelonp/0e08e4d404656f80e095d9322163f808 to your computer and use it in GitHub Desktop.
Save rummelonp/0e08e4d404656f80e095d9322163f808 to your computer and use it in GitHub Desktop.
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