summaryrefslogtreecommitdiff
path: root/chapter10a/docs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chapter10a/docs/Makefile')
-rw-r--r--chapter10a/docs/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/chapter10a/docs/Makefile b/chapter10a/docs/Makefile
new file mode 100644
index 00000000..055882b2
--- /dev/null
+++ b/chapter10a/docs/Makefile
@@ -0,0 +1,14 @@
+GV := $(wildcard *.gv)
+SVG := $(patsubst %.gv,%.svg,$(GV))
+.DELETE_ON_ERROR:
+
+.PHONY: all
+all: $(SVG)
+
+%.svg: %.gv
+ dot -Tsvg $< > $@
+ @sed -i 's/\r$$//' $@
+
+.PHONY: clean
+clean:
+ @rm -f $(SVG)