-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (53 loc) · 1.41 KB
/
Makefile
File metadata and controls
72 lines (53 loc) · 1.41 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
69
70
71
72
# Agentic RTB Framework Makefile
BINARY=artf-agent
LANGUAGES=go # cpp go csharp objc python ruby js
# Go build and run targets
.PHONY: build run-all run-grpc run-mcp run-web test
build:
go build -o $(BINARY) ./cmd/agent
run-all: build
./$(BINARY) --enable-grpc --enable-mcp --enable-web
run-grpc: build
./$(BINARY) --enable-grpc
run-mcp: build
./$(BINARY) --enable-mcp
run-web: build
./$(BINARY) --enable-mcp --enable-web
test:
go test ./...
# Rust build and run targets
RUST_BINARY=rust/target/release/agentic-rtb-framework-service
.PHONY: build-rust run-rust build-all
build-rust:
cd rust && cargo build --release
run-rust: build-rust
ARTF_GRPC_SERVER_PORT=50053 ARTF_HTTP_SERVER_PORT=8082 $(RUST_BINARY)
build-all: build build-rust
# Protobuf targets
bindings:
for x in ${LANGUAGES}; do \
protoc --proto_path=. \
--$${x}_out=. \
--experimental_editions \
openrtb.proto agenticrtbframework.proto; \
protoc --proto_path=. \
--$${x}_out=. \
--$${x}-grpc_out=require_unimplemented_servers=false:. \
agenticrtbframeworkservices.proto; \
done
check:
prototool lint
clean:
for x in ${LANGUAGES}; do \
rm -fr $${x}/*; \
done
docs:
podman run --rm \
-v ${PWD}:${PWD} \
-w ${PWD} \
pseudomuto/protoc-gen-doc \
--doc_opt=html,doc.html \
--proto_path=${PWD} \
openrtb.proto agenticrtbframework.proto agenticrtbframeworkservices.proto
watch:
fswatch -r ./ | xargs -n1 make docs