diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-10-29 21:58:47 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-10-29 21:58:47 +0100 |
commit | ab2409752fc8992a172e8caffa64fa19beafbcb7 (patch) | |
tree | bec8f72367bba8f584893f76219b034943039247 /utils/Makefile | |
parent | af7c5d500b76a6f2db790a1a8e0480f370da81ce (diff) | |
download | infra-master.tar.gz infra-master.tar.bz2 infra-master.tar.xz infra-master.zip |
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
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 |