intelligence-radar/Makefile

27 lines
1.1 KiB
Makefile
Raw Normal View History

.DEFAULT_GOAL := help
.PHONY: help check test demo sync demo-advisor install-timer
help: ## List available targets
@awk 'BEGIN { print "Available targets:" } /^[a-zA-Z0-9_-]+:.*## / { split($$0, parts, "## "); sub(/:.*/, "", parts[1]); printf " %-16s %s\n", parts[1], parts[2] }' $(MAKEFILE_LIST)
check: test ## Run tests and repository integrity checks
python3 -m intelligence_radar check
test: ## Run the test suite
python3 -m unittest discover -s tests -v
demo: ## Demonstrate the isolated evidence workflow
python3 tools/demo.py
sync: ## Push committed work and synchronize Statehub
uv run --project /home/worsch/repo-manager rmgr sync --path . --push
demo-advisor: ## Demonstrate the isolated capability advisor
python3 tools/demo_advisor.py
install-timer: ## Install and enable the local user timer
install -D -m 644 ops/systemd/intelligence-radar.service $(HOME)/.config/systemd/user/intelligence-radar.service
install -D -m 644 ops/systemd/intelligence-radar.timer $(HOME)/.config/systemd/user/intelligence-radar.timer
systemctl --user daemon-reload
systemctl --user enable --now intelligence-radar.timer