1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-09 14:40:05 +00:00
cloudkeys-go/Makefile
Knut Ahlers ef5bc59525
Switch to Github publishing
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-08 12:58:02 +01:00

27 lines
555 B
Makefile

VERSION = $(shell git describe --tags)
default: build
build: $(GOPATH)/bin/godep bindata.go
$(GOPATH)/bin/godep go build -ldflags "-X main.version=$(VERSION)" .
pre-commit: bindata.go
container: bindata.go
docker build .
gen_css:
lessc --verbose -x less/*.less assets/style.css
gen_js:
coffee --compile -o assets coffee/*.coffee
bindata.go: gen_css gen_js
go generate
$(GOPATH)/bin/godep:
go get github.com/tools/godep
publish:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh