1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-12 16:02:44 +00:00
cloudkeys-go/Makefile

22 lines
438 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: bundle_assets
go build .
pre-commit: bundle_assets
2015-08-24 22:10:07 +00:00
container: bundle_assets
2015-07-29 07:01:23 +00:00
docker run -v $(CURDIR):/src -e LDFLAGS='-X main.version $(VERSION)' centurylink/golang-builder:latest
docker build .
gen_css:
lessc --verbose -O2 -x less/*.less assets/style.css
gen_js:
coffee --compile -o assets coffee/*.coffee
bundle_assets: gen_css gen_js
go-bindata assets templates