aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/prometheus/procfs/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/prometheus/procfs/Makefile.common')
-rw-r--r--vendor/github.com/prometheus/procfs/Makefile.common11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/prometheus/procfs/Makefile.common b/vendor/github.com/prometheus/procfs/Makefile.common
index b978dfc..9320176 100644
--- a/vendor/github.com/prometheus/procfs/Makefile.common
+++ b/vendor/github.com/prometheus/procfs/Makefile.common
@@ -150,6 +150,17 @@ else
150 $(GO) get $(GOOPTS) -t ./... 150 $(GO) get $(GOOPTS) -t ./...
151endif 151endif
152 152
153.PHONY: update-go-deps
154update-go-deps:
155 @echo ">> updating Go dependencies"
156 @for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
157 $(GO) get $$m; \
158 done
159 GO111MODULE=$(GO111MODULE) $(GO) mod tidy
160ifneq (,$(wildcard vendor))
161 GO111MODULE=$(GO111MODULE) $(GO) mod vendor
162endif
163
153.PHONY: common-test-short 164.PHONY: common-test-short
154common-test-short: $(GOTEST_DIR) 165common-test-short: $(GOTEST_DIR)
155 @echo ">> running short tests" 166 @echo ">> running short tests"