Skip to content

Commit

Permalink
Add maintenance.mk with update-dependencies target.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <[email protected]>
  • Loading branch information
thallgren committed Dec 23, 2024
1 parent 28cf6f1 commit 7f9e316
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions build-aux/maintenance.mk
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7f9e316

Please sign in to comment.