summaryrefslogtreecommitdiffstats
path: root/depgraphs/Makefile
blob: 72db2dad7d5630c897b6ae260350e83431abe2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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