makefile 543 Bytes
all:build

export GOPATH := $(CURDIR)/_project
export GOBIN := $(CURDIR)/bin

CURRENT_GIT_GROUP := bulletins
CURRENT_GIT_REPO := bulletin

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