-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (53 loc) · 1.33 KB
/
Makefile
File metadata and controls
68 lines (53 loc) · 1.33 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
include config.mk
.PHONY: all run clean deps install uninstall
all:
$(MAKE) -C src
.PHONY: v ver version
v ver version:
@grep Version src/repl/version.go|cut -d '"' -f2
fmt:
$(MAKE) -C src/mcps indent
go fmt $(shell ls src/repl/*.go )
go fmt $(shell ls src/wmcp/*.go )
go fmt $(shell ls src/tool/*.go )
install:
$(MAKE) -C src/wmcp install
$(MAKE) -C src/repl install
$(MAKE) -C src/tool install
$(MAKE) -C src/swan install
$(MAKE) -C src/mcps install
$(MAKE) -C src/vdb install
$(MAKE) -C src/bot install
uninstall:
$(MAKE) -C src/wmcp uninstall
$(MAKE) -C src/repl uninstall
$(MAKE) -C src/tool uninstall
$(MAKE) -C src/mcps uninstall
$(MAKE) -C src/swan uninstall
$(MAKE) -C src/vdb uninstall
$(MAKE) -C src/bot uninstall
V=$(shell cat src/repl/version.go |grep = | cut -d '"' -f2)
F=$(shell find src -perm 755 -type f | grep -v ui/ | grep -v sh)
android:
$(MAKE) clean
export GOOS=android ; export GOARCH=arm64 ; export CGO_ENABLED=1 ; export GO_TAGS=netgo ; $(MAKE)
$(MAKE) dist
dist:
rm -rf mai-$(V) mai-$(V).zip
mkdir mai-$(V)
cp $(F) mai-$(V)
zip -r mai-$(V).zip mai-$(V)
run:
go run $(MAIN_FILE)
mcprun:
./src/wmcp/mai-wmcp 'r2pm -r r2mcp' src/mcps/wttr/mai-mcp-wttr
clean:
$(MAKE) -C src clean
go clean
rm -f $(BINARY_NAME)
deps:
go mod tidy
go mod download
test:
go test ./...
.DEFAULT_GOAL := all