1
0
mirror of https://github.com/Luzifer/vault-otp-ui.git synced 2024-09-19 17:13:00 +00:00
vault-otp-ui/Makefile
Knut Ahlers eafd1b07cb
Add CI building
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-06-14 21:15:25 +02:00

18 lines
460 B
Makefile

default: build
ci:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh
build: generate
go build -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
install: generate
go install -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
generate: build_js
go generate
build_js:
coffee -c application.coffee