Skip to content

Commit

Permalink
Add dependency management into Makefile
Browse files Browse the repository at this point in the history
new targets 'deps-init' & 'deps-get' as govendor helpers
  • Loading branch information
nordicdyno committed Feb 13, 2017
1 parent f5cc502 commit ab866b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ GOX_ARGS = -output="$(BUILD_DIR)/{{.Dir}}_{{.OS}}_{{.Arch}}" -osarch="linux/amd6
build:
$(GO) build -o $(BUILD_DIR)/nsq_exporter .

.PHONY: deps-init deps-get
deps-init:
@go get -u github.com/kardianos/govendor
$(GOPATH)/bin/govendor init

deps-get: deps-init
@$(GOPATH)/bin/govendor get github.com/lovoo/nsq_exporter

.PHONY: clean
clean:
rm -R $(BUILD_DIR)/* || true
Expand Down

0 comments on commit ab866b7

Please sign in to comment.