mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-14 00:42:44 +00:00
23 lines
437 B
Makefile
23 lines
437 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 -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
|