forked from gaia-pipeline/gaia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 656 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
NAME=gaia
GO_LDFLAGS_STATIC=-ldflags "-s -w -extldflags -static"
default: dev
dev:
go run ./cmd/gaia/main.go -homepath=${PWD}/tmp -dev=true
compile_frontend:
cd ./frontend && \
rm -rf dist && \
npm install && \
npm run build
static_assets:
go get github.com/GeertJohan/go.rice && \
go get github.com/GeertJohan/go.rice/rice && \
cd ./handlers && \
rm -f rice-box.go && \
rice embed-go
compile_backend:
env GOOS=linux GOARCH=amd64 go build $(GO_LDFLAGS_STATIC) -o $(NAME)-linux-amd64 ./cmd/gaia/main.go
test:
go test -v ./...
test-cover:
go test -v ./... --coverprofile=cover.out
release: compile_frontend static_assets compile_backend