forked from kxn/codex-remote-feishu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
43 lines (32 loc) · 1.05 KB
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
GO ?= go
.PHONY: check test build fmt release-artifacts smoke-release-install start stop status web-build
check:
bash scripts/web/build-admin-ui.sh
bash scripts/check/no-local-paths.sh
bash scripts/check/no-legacy-names.sh
files="$$(find cmd internal testkit -name '*.go' | sort)"; output="$$(gofmt -l $$files)"; test -z "$$output" || (echo "$$output" >&2; exit 1)
bash scripts/check/smoke-install-release.sh
$(GO) test ./...
test:
$(GO) test ./...
build:
bash scripts/web/build-admin-ui.sh
$(GO) build ./cmd/codex-remote
$(GO) build ./cmd/relayd
$(GO) build ./cmd/relay-wrapper
$(GO) build ./cmd/relay-install
web-build:
bash scripts/web/build-admin-ui.sh
fmt:
gofmt -w $$(find cmd internal testkit -name '*.go' | sort)
release-artifacts:
@test -n "$(VERSION)" || (echo "VERSION is required, e.g. make release-artifacts VERSION=v0.1.0" >&2; exit 1)
bash scripts/release/build-artifacts.sh "$(VERSION)"
smoke-release-install:
bash scripts/check/smoke-install-release.sh
start:
./install.sh start
stop:
./install.sh stop
status:
./install.sh status