summaryrefslogtreecommitdiffstats
path: root/diagrams/docs/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-10 09:18:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-08-10 09:19:08 +0000
commita2d7dede737947d7c6afa20a88e1f0c64e0eb96c (patch)
treefed4aff7dbe0be00cf91de6261d98bc0eb9a2449 /diagrams/docs/Makefile
parentReleasing debian version 1.41.0-1. (diff)
downloadnetdata-a2d7dede737947d7c6afa20a88e1f0c64e0eb96c.tar.xz
netdata-a2d7dede737947d7c6afa20a88e1f0c64e0eb96c.zip
Merging upstream version 1.42.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'diagrams/docs/Makefile')
-rw-r--r--diagrams/docs/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/diagrams/docs/Makefile b/diagrams/docs/Makefile
new file mode 100644
index 000000000..0ec111697
--- /dev/null
+++ b/diagrams/docs/Makefile
@@ -0,0 +1,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 $@ $<