-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 925 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 925 Bytes
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
.PHONY: build download codegen refresh check clean extension skill
build:
go build -o webex .
download:
cd codegen && python3 download_collections.py
codegen:
cd codegen && python3 extract_api_spec.py
cd codegen && python3 generate_cli.py
cd codegen && python3 generate_skills.py
refresh: download codegen build
check: build
go vet ./...
extension: build
cd extension && zip -r ../webex-mcp.dxt manifest.json icon.png
@echo "Built webex-mcp.dxt"
skill:
@python3 -c "\
import zipfile; \
z = zipfile.ZipFile('webex.skill', 'w', zipfile.ZIP_DEFLATED); \
z.write('skill/SKILL.md', 'webex-cli/SKILL.md'); \
resources = ['admin','calling','cc','device','meetings','messaging']; \
[z.write(f'skill/{r}/SKILL.md', f'webex-cli/resources/{r}.md') for r in resources]; \
z.close()"
@echo "Built webex.skill"
clean:
rm -f webex webex-cli webex-mcp.dxt webex.skill
rm -f codegen/api_spec.json codegen/api_outline.json