From 57ae5299a31f391f66529147e8888117cacf8328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 25 Mar 2017 23:17:21 -0700 Subject: [PATCH] Add make targets for handling vendor dir via manul This will install manul and run allow to run all commands needed to maintain all vendor deps --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index e8a96b61b..35b65d114 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,20 @@ lint: .build/deps.ok test: lint bindata_assetfs.go @go test -cover `go list ./... | grep -v /vendor/` +.build/vendor.ok: + go get github.com/kovetskiy/manul + mkdir -p .build + touch $@ + +.PHONY: vendor +vendor: .build/vendor.ok + manul -Crt + manul -Irt + +.PHONY: vendor-update +vendor-update: .build/vendor.ok + manul -Urt + #======================== asset helper targets ================================= ASSETS_DIR := $(CURDIR)/assets/static/managed