2015-07-29 10:07:42 +00:00
|
|
|
VERSION = $(shell git describe --tags)
|
2015-07-29 07:01:23 +00:00
|
|
|
|
|
|
|
default: build
|
|
|
|
|
2015-10-28 12:47:31 +00:00
|
|
|
build: $(GOPATH)/bin/godep bindata.go
|
|
|
|
$(GOPATH)/bin/godep go build -ldflags "-X main.version=$(VERSION)" .
|
2015-07-29 07:01:23 +00:00
|
|
|
|
2015-10-28 12:47:31 +00:00
|
|
|
pre-commit: bindata.go
|
2015-07-29 07:01:23 +00:00
|
|
|
|
2015-10-28 12:47:31 +00:00
|
|
|
container: bindata.go
|
2015-07-29 07:01:23 +00:00
|
|
|
docker build .
|
|
|
|
|
|
|
|
gen_css:
|
2017-01-22 13:39:38 +00:00
|
|
|
lessc --verbose -x less/*.less assets/style.css
|
2015-07-29 07:01:23 +00:00
|
|
|
|
|
|
|
gen_js:
|
|
|
|
coffee --compile -o assets coffee/*.coffee
|
|
|
|
|
2015-10-28 12:47:31 +00:00
|
|
|
bindata.go: gen_css gen_js
|
|
|
|
go generate
|
|
|
|
|
|
|
|
$(GOPATH)/bin/godep:
|
|
|
|
go get github.com/tools/godep
|
2017-12-08 11:58:02 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2017-12-29 20:52:04 +00:00
|
|
|
|
|
|
|
prepare-gae-deploy:
|
|
|
|
rm -rf Dockerfile venvor
|
|
|
|
|
|
|
|
.PHONY: bindata.go
|