-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 1.07 KB
/
Makefile
File metadata and controls
34 lines (27 loc) · 1.07 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
# annex/Makefile
.PHONY: init patch install update build
init:
@bash scripts/bootstrap_external.sh
# also init the codex submodule (must already be added in your repo)
@git submodule update --init --recursive --jobs 4
# Make sure sparse includes codex-rs & codex-cli
@git -C external/openai-codex sparse-checkout init --cone || true
@git -C external/openai-codex sparse-checkout set codex-rs codex-cli || true
@echo "✔ submodules ready"
patch:
@bash scripts/patch_codex_annex.sh
build: init patch
cargo build --workspace
install: init patch
# Install only codex-owned bins; annex is a feature-gated extension.
cargo install --path external/openai-codex/codex-cli \
--features "annex,annex-mcp,annex-mcp-sse,annex-mcp-stream" --force
@echo "✔ installed: codex with annex features"
update:
@git submodule sync --recursive
@git submodule update --remote --recursive --jobs 4
@git add external/* || true
@git commit -m "chore: bump external submodules" || true
.PHONY: validate-taskset
validate-taskset:
cargo run -p xtask -- validate-taskset $(FILE)