File size: 552 Bytes
079c32c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
PLANTUMLCLI ?= $(shell which plantumlcli)
SOURCE ?= .
PUMLS := $(shell find ${SOURCE} -name *.puml)
PNGS := $(addsuffix .puml.png, $(basename ${PUMLS}))
SVGS := $(addsuffix .puml.svg, $(basename ${PUMLS}))
%.puml.png: %.puml
$(PLANTUMLCLI) -t png -o "$(shell readlink -f $@)" "$(shell readlink -f $<)"
%.puml.svg: %.puml
$(PLANTUMLCLI) -t svg -o "$(shell readlink -f $@)" "$(shell readlink -f $<)"
build: ${SVGS} ${PNGS}
all: build
clean:
rm -rf \
$(shell find ${SOURCE} -name *.puml.svg) \
$(shell find ${SOURCE} -name *.puml.png) \
|