summaryrefslogtreecommitdiff
path: root/chapter13/docs/Makefile
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2024-08-05 16:15:27 -0700
committerDibyendu Majumdar <dibyendumajumdar@users.noreply.github.com>2024-08-06 00:50:58 +0100
commita15a64509645a238357416066eac27780962aaec (patch)
tree4ab4f27f496993887e5a163e1dd3ad91e280043b /chapter13/docs/Makefile
parentf88f0c8a345dbcf7b05f4c8dabc78701d9d909c6 (diff)
downloadSimple-a15a64509645a238357416066eac27780962aaec.tar.gz
Simple-a15a64509645a238357416066eac27780962aaec.zip
Copy chapter12 -> chapter13
Diffstat (limited to 'chapter13/docs/Makefile')
-rw-r--r--chapter13/docs/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter13/docs/Makefile b/chapter13/docs/Makefile
new file mode 100644
index 00000000..12659b8f
--- /dev/null
+++ b/chapter13/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)