This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
vault-sidekick/Makefile
2015-09-18 18:01:08 +01:00

27 lines
523 B
Makefile

NAME=vault-sidekick
AUTHOR=gambol99
HARDWARE=$(shell uname -m)
VERSION=$(shell awk '/const Version/ { print $$4 }' version.go | sed 's/"//g')
.PHONY: test examples authors changelog build
default: build
build:
mkdir -p build
go build -o build/${NAME}
clean:
rm -rf ./build 2>/dev/null
authors:
git log --format='%aN <%aE>' | sort -u > AUTHORS
test:
go get
go get github.com/stretchr/testify/assert
go test -v
changelog: release
git log $(shell git tag | tail -n1)..HEAD --no-merges --format=%B > changelog