add "dep" command to makefile

hide vendor in gitignore
This commit is contained in:
Frederik Löffert 2019-05-14 16:43:19 +02:00
parent ff28d6670f
commit 79244f8ab3
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,4 +2,5 @@
*~
/bin/
/pkg/tmp/
/vendor
!.git*

View File

@ -6,6 +6,8 @@ IMAGE=docker-registry.bestbytes.net/contentserver
all: build test
tag:
echo $(TAG)
dep:
go mod download && go mod vendor && go install -i ./vendor/...
clean:
rm -fv bin/contentserve*
build: clean