summaryrefslogtreecommitdiffstats
path: root/diagrams/docs/Makefile
blob: 0ec111697acecbcc08ad8fdae93f8e337b815e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
DRAWIO ?= /opt/drawio/drawio
DRAWIO_FLAGS = --export --format svg --transparent --embed-svg-images

SOURCES := $(wildcard *.drawio)
TARGETS := $(patsubst %.drawio,%.svg,$(SOURCES))

.PHONY:
all: svg

.PHONY:
svg: $(TARGETS)

.PHONY:
clean:
	rm $(TARGETS)

$(TARGETS): %.svg: %.drawio
	$(DRAWIO) $(DRAWIO_FLAGS) --output $@ $<