summaryrefslogtreecommitdiff
path: root/Makefile
blob: ee488b4c4b82bbab1b728125366b587d6ab402ea (plain)
1
2
3
4
5
6
7
8
9
10
all: graph.png
	pkill -SIGUSR1 -f 'feh (.* )*graph\.png( .*)*' || true

%.in: %.dot
	sed "$(shell sed 's/^#DEFINE \(\S\+\) \(.*\)$$/s@\\b\1\\b@\2@g;/; t; d' "$<")" "$<" > "$@"

%.png: %.in
	dot -Tpng -o$@ $<

.PHONY: all