1 2 3 4 5 6 7 8 9
%.in: %.dot sed "$(shell sed 's/^#DEFINE \(\S\+\) \(.*\)$$/s@\1@\2@g/; t; d' "$<")" "$<" > "$@" %.png: %.in dot -Tpng -o$@ $< all: graph.png .PHONY: all