diff --git a/Makefile b/Makefile index 2d52ecb9f..9bef74b87 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,20 @@ WHITE := $(shell tput -Txterm setaf 7) RESET := $(shell tput -Txterm sgr0) +OCIS_MODULES = \ + accounts \ + glauth \ + konnectd \ + ocis \ + ocs \ + ocis-pkg \ + proxy \ + settings \ + storage \ + store \ + thumbnails \ + web \ + webdav .PHONY: help help: @@ -63,3 +77,9 @@ vendor-bin/behat/composer.lock: vendor-bin/behat/composer.json composer.lock: composer.json @echo composer.lock is not up to date. + +.PHONY: go-mod-tidy +go-mod-tidy: + @for mod in $(OCIS_MODULES); do \ + $(MAKE) --no-print-directory -C $$mod go-mod-tidy; \ + done diff --git a/accounts/Makefile b/accounts/Makefile index d115aed0d..7199e3d9b 100644 --- a/accounts/Makefile +++ b/accounts/Makefile @@ -64,6 +64,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) $(HUGO) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/glauth/Makefile b/glauth/Makefile index cb7734c30..3920939c1 100644 --- a/glauth/Makefile +++ b/glauth/Makefile @@ -59,6 +59,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/konnectd/Makefile b/konnectd/Makefile index eb33b3ae9..a750b30eb 100644 --- a/konnectd/Makefile +++ b/konnectd/Makefile @@ -66,6 +66,10 @@ clean: rm -rf node_modules rm -rf assets/identifier +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/ocis-pkg/Makefile b/ocis-pkg/Makefile index 946ac8054..c399cefbb 100644 --- a/ocis-pkg/Makefile +++ b/ocis-pkg/Makefile @@ -37,6 +37,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/ocis/Makefile b/ocis/Makefile index a48deeff0..77129659f 100644 --- a/ocis/Makefile +++ b/ocis/Makefile @@ -66,6 +66,10 @@ clean: clean-config go clean -i ./... rm -rf $(BIN) $(DIST) $(HUGO) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: clean-config clean-config: rm -rf $(CONFIG) diff --git a/ocs/Makefile b/ocs/Makefile index e08e013c1..a4a8cc661 100644 --- a/ocs/Makefile +++ b/ocs/Makefile @@ -60,6 +60,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/onlyoffice/Makefile b/onlyoffice/Makefile index 72f887372..f73eef2cc 100644 --- a/onlyoffice/Makefile +++ b/onlyoffice/Makefile @@ -61,6 +61,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/proxy/Makefile b/proxy/Makefile index 0720b1236..59be23464 100644 --- a/proxy/Makefile +++ b/proxy/Makefile @@ -60,6 +60,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/settings/Makefile b/settings/Makefile index b3cc9e57c..63390b3a2 100644 --- a/settings/Makefile +++ b/settings/Makefile @@ -63,6 +63,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/storage/Makefile b/storage/Makefile index c1048bbfa..c879e4929 100644 --- a/storage/Makefile +++ b/storage/Makefile @@ -61,6 +61,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/store/Makefile b/store/Makefile index 773edd8b0..dedc4ab67 100644 --- a/store/Makefile +++ b/store/Makefile @@ -60,6 +60,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/thumbnails/Makefile b/thumbnails/Makefile index 3489c2169..16a5e88e6 100644 --- a/thumbnails/Makefile +++ b/thumbnails/Makefile @@ -61,6 +61,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/web/Makefile b/web/Makefile index d6401a049..41b6d054a 100644 --- a/web/Makefile +++ b/web/Makefile @@ -60,6 +60,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) assets +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES) diff --git a/webdav/Makefile b/webdav/Makefile index 3a44111a4..b45e33afa 100644 --- a/webdav/Makefile +++ b/webdav/Makefile @@ -59,6 +59,10 @@ clean: go clean -i ./... rm -rf $(BIN) $(DIST) +.PHONY: go-mod-tidy +go-mod-tidy: + @go mod tidy + .PHONY: fmt fmt: gofmt -s -w $(SOURCES)