From 7f9e316ed67b9cc3557db05aa7f3f06ac3c55651 Mon Sep 17 00:00:00 2001 From: Thomas Hallgren Date: Fri, 20 Dec 2024 16:32:22 +0100 Subject: [PATCH] Add maintenance.mk with update-dependencies target. Signed-off-by: Thomas Hallgren --- Makefile | 1 + build-aux/maintenance.mk | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 build-aux/maintenance.mk diff --git a/Makefile b/Makefile index 4e9f26ac93..c56c1b8b8e 100644 --- a/Makefile +++ b/Makefile @@ -30,4 +30,5 @@ export TELEPRESENCE_VERSION include build-aux/prelude.mk include build-aux/tools.mk include build-aux/main.mk +include build-aux/maintenance.mk include build-aux/docs.mk diff --git a/build-aux/maintenance.mk b/build-aux/maintenance.mk new file mode 100644 index 0000000000..12da49a9a0 --- /dev/null +++ b/build-aux/maintenance.mk @@ -0,0 +1,12 @@ + + +update-dependencies: $(dir $(shell find . -name go.mod)) + for dir in $?; do\ + (cd $$dir && \ + (go get -u ./... && \ + (grep -q gvisor.dev go.mod && go get -u gvisor.dev/gvisor@go) \ + ) || \ + go get -u .);\ + done + $(MAKE) clobber check-unit generate +