From ab2409752fc8992a172e8caffa64fa19beafbcb7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 29 Oct 2024 21:58:47 +0100 Subject: utils: routers --- utils/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'utils/Makefile') diff --git a/utils/Makefile b/utils/Makefile index 77e67a3..409ef2d 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -1,5 +1,18 @@ +IPAM=../ansible/group_vars/all/ipam.yml + all: utils - go run main.go > ../ansible/group_vars/all/ipam.tmp.dot && dot -Tpng ../ansible/group_vars/all/ipam.tmp.dot > ../ansible/group_vars/all/ipam.tmp.png + +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 -- cgit v1.2.3