IPAM=../ansible/group_vars/all/ipam.yml all: utils networks: ../ansible/group_vars/all/networks.tmp.png routers: ../ansible/group_vars/all/routers.tmp.png %.png:%.dot dot -Tpng $< > $@ ../ansible/group_vars/all/networks.tmp.dot: $(IPAM) go run main.go networks $< > $@ ../ansible/group_vars/all/routers.tmp.dot: $(IPAM) go run main.go routers $< > $@ utils: go build