1
0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-09-18 23:22:59 +00:00
cloudkeys-go/Makefile

39 lines
775 B
Makefile
Raw Permalink 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: bindata.go
go build -ldflags "-X main.version=$(VERSION)" -mod=readonly .
build_docker:
docker build -t registry.local/cloudkeys-go-build -f Dockerfile.build .
docker run --rm -i \
-e "CGO_ENABLED=0" \
-v "$(CURDIR):$(CURDIR)" \
-w "$(CURDIR)" \
registry.local/cloudkeys-go-build \
make build
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:
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
bindata.go: gen_css gen_js
go generate
publish:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh
prepare-gae-deploy:
2017-12-30 00:02:02 +00:00
rm -rf Dockerfile vendor
.PHONY: bindata.go