diff options
Diffstat (limited to 'depgraphs/Makefile')
-rw-r--r-- | depgraphs/Makefile | 21 |
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 |