-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (44 loc) · 1.58 KB
/
Makefile
File metadata and controls
51 lines (44 loc) · 1.58 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
## Makefile (repo-owned)
# Keep this file small. It can be edited without breaking template sync.
DOCFORMAT=google
DEFAULT_AI_MODEL=claude-sonnet-4.5
LOGO_FILE=.rhiza/assets/rhiza-logo.svg
GH_AW_ENGINE ?= copilot # Default AI engine for gh-aw workflows (copilot, claude, or codex)
MKDOCS_EXTRA_PACKAGES = --with "mkdocstrings[python]"
# Always include the Rhiza API (template-managed)
include .rhiza/rhiza.mk
# Optional: developer-local extensions (not committed)
-include local.mk
# Wire typecheck into make validate
post-validate::
@$(MAKE) typecheck
## Custom targets
.PHONY: adr
adr: install-gh-aw ## Create a new Architecture Decision Record (ADR) using AI assistance
@echo "Creating a new ADR..."
@echo "This will trigger the adr-create workflow."
@echo ""
@read -p "Enter ADR title (e.g., 'Use PostgreSQL for data storage'): " title; \
echo ""; \
read -p "Enter brief context (optional, press Enter to skip): " context; \
echo ""; \
if [ -z "$$title" ]; then \
echo "Error: Title is required"; \
exit 1; \
fi; \
if [ -z "$$context" ]; then \
gh workflow run adr-create.md -f title="$$title"; \
else \
gh workflow run adr-create.md -f title="$$title" -f context="$$context"; \
fi; \
echo ""; \
echo "✅ ADR creation workflow triggered!"; \
echo ""; \
echo "The workflow will:"; \
echo " 1. Generate the next ADR number"; \
echo " 2. Create a comprehensive ADR document"; \
echo " 3. Update the ADR index"; \
echo " 4. Open a pull request for review"; \
echo ""; \
echo "Check workflow status: gh run list --workflow=adr-create.md"; \
echo "View latest run: gh run view"