Skip to content

Commit

Permalink
Add install target in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshba committed Oct 24, 2019
1 parent d59710b commit 469ada3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@
# go build -o $(BINARY) command/*

.PHONY: build

GOPATH?=$(shell go env GOPATH)
GO111MODULE=on

build: build-deps
go build -mod=vendor -o pd ./command
build-deps:
go get
go mod verify
go mod vendor

install: build
cp pd $(GOPATH)/bin

.PHONY: test
test:
go test ./...
Expand Down

0 comments on commit 469ada3

Please sign in to comment.