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
This commit is contained in:
Łukasz Mierzwa
2017-03-25 23:17:21 -07:00
parent 195d57e8c3
commit 57ae5299a3

View File

@@ -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