summaryrefslogtreecommitdiff
path: root/chapter12/docs/Makefile
diff options
context:
space:
mode:
authordibyendumajumdar <mobile@majumdar.org.uk>2024-07-17 18:11:56 +0100
committerDibyendu Majumdar <dibyendumajumdar@users.noreply.github.com>2024-08-05 23:28:33 +0100
commit834a3834800b3414250cab5dc63f3acf8ecc43ba (patch)
tree7cef70c2842d2cb139825af2f77757c5e0917662 /chapter12/docs/Makefile
parent3de33d30cdff4e85940f781bfa4c4612af85eee2 (diff)
downloadSimple-834a3834800b3414250cab5dc63f3acf8ecc43ba.tar.gz
Simple-834a3834800b3414250cab5dc63f3acf8ecc43ba.zip
#92 chapter 12 start from chapter 11
Diffstat (limited to 'chapter12/docs/Makefile')
-rw-r--r--chapter12/docs/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter12/docs/Makefile b/chapter12/docs/Makefile
new file mode 100644
index 00000000..12659b8f
--- /dev/null
+++ b/chapter12/docs/Makefile
@@ -0,0 +1,12 @@
+GV := $(wildcard *.gv)
+SVG := $(patsubst %.gv,%.svg,$(GV))
+
+.PHONY: all
+all: $(SVG)
+
+%.svg: %.gv
+ dot -Tsvg $< > $@
+
+.PHONY: clean
+clean:
+ @rm -f $(SVG)