Change godep command call to use the GODEP variable

Signed-off-by: Kazumichi Yamamoto <yamamoto.febc@gmail.com>
This commit is contained in:
Kazumichi Yamamoto 2015-11-14 15:54:31 +09:00
parent d8d57b845d
commit 3363a49ffc
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
dep-save: dep-save:
$(if $(GODEP), , \ $(if $(GODEP), , \
$(error Please install godep: go get github.com/tools/godep)) $(error Please install godep: go get github.com/tools/godep))
godep save $(shell go list ./... | grep -v vendor/) $(GODEP) save $(shell go list ./... | grep -v vendor/)
dep-restore: dep-restore:
$(if $(GODEP), , \ $(if $(GODEP), , \
$(error Please install godep: go get github.com/tools/godep)) $(error Please install godep: go get github.com/tools/godep))
godep restore -v $(GODEP) restore -v