1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-08 14:10:05 +00:00
cloudkeys-go/Makefile

24 lines
437 B
Makefile
Raw Normal View History

2015-07-29 10:07:42 +00:00
VERSION = $(shell git describe --tags)
2015-07-29 07:01:23 +00:00
default: build
build: $(GOPATH)/bin/godep bindata.go
$(GOPATH)/bin/godep go build -ldflags "-X main.version=$(VERSION)" .
2015-07-29 07:01:23 +00:00
pre-commit: bindata.go
2015-07-29 07:01:23 +00:00
container: bindata.go
2015-07-29 07:01:23 +00:00
docker build .
gen_css:
lessc --verbose -O2 -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