-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 823 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 823 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
36
37
38
# Intent Catalog Makefile
PYTHON := python3
SCRIPTS := scripts
DIST := dist
SCHEMA := schema
# Default repos to scan
CCPI_REPO := /home/jeremy/000-projects/claude-code-plugins
NIXTLA_REPO := /home/jeremy/000-projects/nixtla
.PHONY: all extract validate ci clean help
all: ci
## extract: Extract catalog from repos
extract:
@mkdir -p $(DIST)
$(PYTHON) $(SCRIPTS)/extract_catalog.py \
--repo $(CCPI_REPO) \
--repo $(NIXTLA_REPO) \
--out $(DIST)/catalog.json
## validate: Validate catalog against schema
validate:
$(PYTHON) $(SCRIPTS)/validate_catalog.py $(DIST)/catalog.json
## ci: Run full CI pipeline (extract + validate)
ci: extract validate
@echo "CI passed"
## clean: Remove generated files
clean:
rm -rf $(DIST)/*.json
## help: Show this help
help:
@grep -E '^## ' $(MAKEFILE_LIST) | sed 's/## //'