Skip to content

Commit

Permalink
Add install make task (#19)
Browse files Browse the repository at this point in the history
* Fix missing .PHONY tasks

* Alphabetize make tasks

Until we start grouping make tasks, sort them alphabetically.

* Add install make task
  • Loading branch information
countingtoten committed Nov 7, 2021
1 parent 786ca91 commit 1bafd18
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build test test-short vendor
.PHONY: build install test test-short test-update vendor version

latest_tag := $(shell git describe --tags --abbrev=0)
version := ${latest_tag}
Expand All @@ -13,12 +13,8 @@ go_ldflags := "-X main.Version=${version}"
build: vendor
go build -ldflags=${go_ldflags} -o bin/felix cmd/felix/main.go

version:
@echo ${version}

vendor:
go mod tidy
go mod vendor
install: vendor
go install -ldflags=${go_ldflags} ./...

test:
go test -count=1 ./...
Expand All @@ -28,3 +24,10 @@ test-short:

test-update:
go test ./... -update

version:
@echo ${version}

vendor:
go mod tidy
go mod vendor

0 comments on commit 1bafd18

Please sign in to comment.