makefile
566 Bytes
all:build
export GOPATH := $(CURDIR)/_project
export GOBIN := $(CURDIR)/bin
CURRENT_GIT_GROUP := git.meiqia.com/business_platform
CURRENT_GIT_REPO := feedback
folder_dep:
mkdir -p $(CURDIR)/_project/src/$(CURRENT_GIT_GROUP)
test -d $(CURDIR)/_project/src/$(CURRENT_GIT_GROUP)/$(CURRENT_GIT_REPO) || ln -s $(CURDIR) $(CURDIR)/_project/src/$(CURRENT_GIT_GROUP)
glide: #
mkdir -p $(CURDIR)/vendor
glide install
build: folder_dep
go install $(CURRENT_GIT_GROUP)/$(CURRENT_GIT_REPO)
clean:
@rm -rf vendor bin _project
.PHONY: deps install test add_dep clean