summaryrefslogtreecommitdiff
path: root/chapter14/docs/Makefile
diff options
context:
space:
mode:
authordibyendumajumdar <mobile@majumdar.org.uk>2024-08-06 13:09:38 +0100
committerThalia Archibald <thalia@archibald.dev>2024-09-07 10:54:48 -0700
commitf445971ffd36dd58af4e68b43f2e3302fdda42f2 (patch)
treea8471ed91cd1b314e64c2a6eae0ea50ac0847e8d /chapter14/docs/Makefile
parent105c70c2fba46fae77a48198b9578e467953a49a (diff)
downloadSimple-f445971ffd36dd58af4e68b43f2e3302fdda42f2.tar.gz
Simple-f445971ffd36dd58af4e68b43f2e3302fdda42f2.zip
#98 Chapter 14 arrays
Diffstat (limited to 'chapter14/docs/Makefile')
-rw-r--r--chapter14/docs/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter14/docs/Makefile b/chapter14/docs/Makefile
new file mode 100644
index 00000000..12659b8f
--- /dev/null
+++ b/chapter14/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)