1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-13 00:12:43 +00:00
cloudkeys-go/Makefile
Knut Ahlers 10ad0e238d
Cleanup makefile, import path and bindata generation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-08-25 12:11:08 +02:00

28 lines
583 B
Makefile

VERSION = $(shell git describe --tags)
default: build
build: bindata.go
go build -ldflags "-X main.version=$(VERSION)" .
container: bindata.go
docker build .
build_vue:
docker run --rm -i \
-v "$(CURDIR):/src" \
-w "/src" \
node:10-alpine \
sh -exc "npm ci && npm run build && chown -R $(shell id -u):$(shell id -g) ."
bindata.go: build_vue
go-bindata -o bindata.go assets/...
publish:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh
prepare-gae-deploy:
rm -rf Dockerfile vendor
.PHONY: bindata.go