summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a2fab8f..8e7ea8a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
-%.png: %.dot
+%.in: %.dot
+ sed "$(shell sed 's/^#DEFINE \(\S\+\) \(.*\)$$/s@\1@\2@g/; t; d' "$<")" "$<" > "$@"
+
+%.png: %.in
dot -Tpng -o$@ $<
all: graph.png
.PHONY: all
-