-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
43 lines (29 loc) · 903 Bytes
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
BUILD_DIRECTORY=_build
PROGRAM_NAME=bolt-ui
all: test lint build
ci: tools dependencies generate check-repository-unchanged test lint build
build-directory:
mkdir -p ./${BUILD_DIRECTORY}
build: build-directory
go build -o ./${BUILD_DIRECTORY}/${PROGRAM_NAME} ./cmd/${PROGRAM_NAME}
build-race: build-directory
go build -race -o ./${BUILD_DIRECTORY}/${PROGRAM_NAME} ./cmd/${PROGRAM_NAME}
frontend:
./_tools/build_frontend.sh
check-repository-unchanged:
./_tools/check_repository_unchanged.sh
tools:
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/google/wire/cmd/wire@latest
dependencies:
go get ./...
generate:
go generate ./...
lint:
go vet ./...
staticcheck ./...
test:
go test ./...
clean:
rm -rf ./${BUILD_DIRECTORY}
.PHONY: all build build-directory frontend check-repository-unchanged build-race tools dependencies generate lint test clean