Created
December 11, 2020 14:01
-
-
Save rummelonp/0e08e4d404656f80e095d9322163f808 to your computer and use it in GitHub Desktop.
PlantUML で仕様書書いてビルドする的なやつの Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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