Skip to content

Commit

Permalink
make GO=
Browse files Browse the repository at this point in the history
  • Loading branch information
motemen committed Feb 7, 2018
1 parent 81b39e7 commit 7e68f82
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
GO = go

VERBOSE_FLAG = $(if $(VERBOSE),-v)

VERSION = $$(git describe --tags --always --dirty) ($$(git name-rev --name-only HEAD))
Expand All @@ -7,19 +9,19 @@ BUILD_FLAGS = -ldflags "\
"

build: deps
go build $(VERBOSE_FLAG) $(BUILD_FLAGS)
$(GO) build $(VERBOSE_FLAG) $(BUILD_FLAGS)

test: testdeps
go test $(VERBOSE_FLAG) $(go list ./... | grep -v '^github.com/motemen/ghq/vendor/')
$(GO) test $(VERBOSE_FLAG) $($(GO) list ./... | grep -v '^github.com/motemen/ghq/vendor/')

deps:
go get -d $(VERBOSE_FLAG)
$(GO) get -d $(VERBOSE_FLAG)

testdeps:
go get -d -t $(VERBOSE_FLAG)
$(GO) get -d -t $(VERBOSE_FLAG)

install: deps
go install $(VERBOSE_FLAG) $(BUILD_FLAGS)
$(GO) install $(VERBOSE_FLAG) $(BUILD_FLAGS)

bump-minor:
git diff --quiet && git diff --cached --quiet
Expand Down

0 comments on commit 7e68f82

Please sign in to comment.