diff options
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r-- | Makefile.build.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk index b58e2139..13745382 100644 --- a/Makefile.build.mk +++ b/Makefile.build.mk @@ -1,4 +1,4 @@ -.PHONY: all setup build clean +.PHONY: all setup generate-mocks build clean all: gitlab-pages @@ -7,6 +7,10 @@ setup: clean .GOPATH/.ok go get golang.org/x/lint/golint go get github.com/wadey/gocovmerge go get github.com/fzipp/gocyclo + go get github.com/golang/mock/mockgen + +generate-mocks: .GOPATH/.ok + $Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks build: .GOPATH/.ok $Q go install $(if $V,-v) $(VERSION_FLAGS) -buildmode exe $(IMPORT_PATH) |