mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
1a8cf5c415
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
19 lines
892 B
Makefile
19 lines
892 B
Makefile
GO ?= go
|
|
PWD := $(shell pwd)
|
|
GOPATH := $(shell $(GO) env GOPATH)
|
|
ROOTPATH := $(abspath $(dir $(PWD)))
|
|
SHELL := /bin/bash
|
|
OBJPREFIX := "github.com/milvus-io/milvus/cmd/milvus"
|
|
|
|
INSTALL_PATH := $(ROOTPATH)/bin
|
|
|
|
# use parent getdeps
|
|
getdeps:
|
|
$(MAKE) -C $(ROOTPATH) getdeps
|
|
|
|
generate-mockery: getdeps
|
|
$(INSTALL_PATH)/mockery --name=MsgStream --dir=$(PWD)/mq/msgstream --output=$(PWD)/mq/msgstream --filename=mock_msgstream.go --with-expecter --structname=MockMsgStream --outpkg=msgstream --inpackage
|
|
$(INSTALL_PATH)/mockery --name=Client --dir=$(PWD)/mq/msgdispatcher --output=$(PWD)/mq/msgsdispatcher --filename=mock_client.go --with-expecter --structname=MockClient --outpkg=msgdispatcher --inpackage
|
|
$(INSTALL_PATH)/mockery --name=Logger --dir=$(PWD)/eventlog --output=$(PWD)/eventlog --filename=mock_logger.go --with-expecter --structname=MockLogger --outpkg=eventlog --inpackage
|
|
|