summaryrefslogtreecommitdiffstats
path: root/depgraphs/Makefile
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-03-14 00:55:59 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-03-14 00:59:06 (EDT)
commitd3c1125cfda422cd268e12e0e2a18752edbe6b55 (patch)
tree91d8ce22a270beddcc4bb95607e1c15b5c0d0afb /depgraphs/Makefile
parent4cd2c271ef22a3c221eb196d85c69081ac1fc962 (diff)
Add dependency graph.
Diffstat (limited to 'depgraphs/Makefile')
-rw-r--r--depgraphs/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/depgraphs/Makefile b/depgraphs/Makefile
new file mode 100644
index 0000000..72db2da
--- /dev/null
+++ b/depgraphs/Makefile
@@ -0,0 +1,21 @@
+# Drawing these graphs requires Graphviz.
+
+.SUFFIXES:
+.SUFFIXES: .dot .png
+
+SRCS = Build-Depends_system_simplified.dot
+OBJS = $(SRCS:.dot=.png)
+
+.PHONY: all
+all: $(OBJS)
+
+$(OBJS):
+ @printf ' DRAW %s\n' '$@'
+ @dot -T png -o '$@' '$*.dot'
+
+.PHONY: clean
+clean:
+ @for obj in $(OBJS); do \
+ printf ' RM %s\n' "$${obj}"; \
+ rm -f $${obj}; \
+ done