Makefile: replace script/vendor with 'vendor' target

This commit is contained in:
Taylor Blau 2018-07-16 15:05:08 -05:00
parent 26d27c7bc7
commit 81c952308b
3 changed files with 13 additions and 8 deletions

@ -118,7 +118,7 @@ tests:
## Updating 3rd party packages
0. Update `glide.yaml`.
0. Run `script/vendor` to update the code in the `vendor` directory.
0. Run `make vendor` to update the code in the `vendor` directory.
0. Commit the change. Git LFS vendors the full source code in the repository.
0. Submit a pull request.

12
Makefile Normal file

@ -0,0 +1,12 @@
GLIDE ?= glide
RM ?= rm -f
glide.lock : glide.yaml
$(GLIDE) update
vendor : glide.lock
$(GLIDE) install
$(RM) -r vendor/github.com/ThomsonReutersEikon/go-ntlm/utils
$(RM) -r vendor/github.com/davecgh/go-spew
$(RM) -r vendor/github.com/pmezard/go-difflib

@ -1,7 +0,0 @@
#!/usr/bin/env bash
glide update -s -u
glide install -s -u
rm -rf vendor/github.com/ThomsonReutersEikon/go-ntlm/utils
rm -rf vendor/github.com/davecgh/go-spew
rm -rf vendor/github.com/pmezard/go-difflib