forked from roc-streaming/rocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (43 loc) · 734 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
44
45
46
47
48
49
50
51
52
53
54
.PHONY: all
all: build
.PHONY: re
re: fmt gen tidy build
.PHONY: build
build:
go build
.PHONY: arm32
arm32:
GOOS=linux GOARCH=arm go build
.PHONY: arm64
arm64:
GOOS=linux GOARCH=arm64 go build
.PHONY: gen
gen:
go generate ./...
swag init
.PHONY: fmt
fmt:
go fmt ./...
swag fmt
.PHONY: tidy
tidy:
go mod tidy
.PHONY: admin
admin:
cd admin && pnpm --silent run lint
cd admin && pnpm --silent run build | cat
go build -v
.PHONY: jsfmt
jsfmt:
cd admin && pnpm --silent run format
.PHONY: toc
toc:
markdown-toc --maxdepth 3 -i USAGE.md
markdown-toc --maxdepth 3 -i HACKING.md
.PHONY: html
html:
rm -rf docs/html
mkdir -p docs/html
cp docs/*.html docs/html/
cp docs/*.json docs/html/
cp docs/*.yaml docs/html/