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

32 lines
628 B
Makefile
Raw Normal View History

2015-09-18 05:14:15 -04:00
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 docker
2015-09-18 05:14:15 -04:00
default: build
build:
mkdir -p build
go build -o build/${NAME}
docker: build
sudo docker build -t ${AUTHOR}/${NAME} .
2015-09-21 06:09:38 -04:00
sudo docker build -t ${AUTHOR}/${NAME} .
clean:
rm -rf ./build 2>/dev/null
2015-09-18 05:14:15 -04:00
authors:
git log --format='%aN <%aE>' | sort -u > AUTHORS
test:
2015-09-18 13:01:08 -04:00
go get
go get github.com/stretchr/testify/assert
2015-09-18 05:14:15 -04:00
go test -v
changelog: release
git log $(shell git tag | tail -n1)..HEAD --no-merges --format=%B > changelog