Files
blackroad/Makefile
Alexa Amundson 7a7949712b
Some checks failed
Lint & Format / detect (push) Has been cancelled
Lint & Format / js-lint (push) Has been cancelled
Lint & Format / py-lint (push) Has been cancelled
Lint & Format / sh-lint (push) Has been cancelled
Lint & Format / go-lint (push) Has been cancelled
Monorepo Lint / lint-shell (push) Has been cancelled
Monorepo Lint / lint-js (push) Has been cancelled
sync: 2026-03-14 19:00 — 20 files from Alexandria
RoadChain-SHA2048: 49090281b11fa64d
RoadChain-Identity: alexa@sovereign
RoadChain-Full: 49090281b11fa64d807251c95479ebe075f31d76f6e32a0a400fb424dd75c8e0f0ef630b6cbafc47869b23364ee52a3558f7deaf5829a1a9a1a00fdbb7c51ec26b03883dec041b2ddead80ae82a9fa9e96931134125573e132a2fe678e6135e5ec2d2814b38a9ad22c1521cd1f32080a9743a9037c5874bcda89e728a2851a4363762c043ef4a58b04022d2156a94c5ee9cf06ce8291bcc497c962c92e3bd3b9d42d6b838d66e773eb32be3f20f615e099d4d9fa42adf12ed4440896f06043ebb8042a8a66be1f56719ec59641a1463e3fea975d54844fdc43a81c9718a86c1ffe1948b2cce9de6e948200fe6a1c5d27ad2e0b5d1999ee24828b6ebea3b131d7
2026-03-14 19:00:02 -05:00

44 lines
1.9 KiB
Makefile

# BlackRoad OS — Pave Tomorrow.
.PHONY: help sync push health fleet workers test lint
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
sync: ## Sync all sources into monorepo
@./sync.sh
push: ## Sync and push to Gitea
@./sync.sh push
health: ## Check fleet health
@echo "Checking workers..."
@for w in roadcode-squad squad-webhook stats-blackroad analytics-blackroad fleet-dashboard; do \
code=$$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 "https://$$w.amundsonalexa.workers.dev/health" 2>/dev/null); \
if [ "$$code" = "200" ]; then echo "$$w"; else echo "$$w ($$code)"; fi; \
done
@for w in roadpay road-search blackroad-stripe; do \
code=$$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 "https://$$w.amundsonalexa.workers.dev/health" 2>/dev/null); \
if [ "$$code" = "200" ]; then echo "$$w"; else echo "$$w ($$code)"; fi; \
done
fleet: ## Check fleet node status
@echo "Pinging nodes..."
@for node in "Alice:192.168.4.49" "Cecilia:192.168.4.96" "Octavia:192.168.4.101" "Aria:192.168.4.98" "Lucidia:192.168.4.38"; do \
name=$${node%%:*}; ip=$${node##*:}; \
if ping -c 1 -W 2 $$ip > /dev/null 2>&1; then echo "$$name ($$ip)"; else echo "$$name ($$ip)"; fi; \
done
workers: ## List all worker sources
@echo "Workers in monorepo:"
@ls -d workers/*-src/ 2>/dev/null | sed 's|workers/||;s|-src/||' | while read w; do echo " $$w"; done
test: ## Run tests (language auto-detect)
@if [ -f package.json ]; then npm test 2>/dev/null || true; fi
@if [ -f requirements.txt ]; then python -m pytest 2>/dev/null || true; fi
@find scripts/ -name '*.sh' -exec bash -n {} \; 2>&1 | head -20 && echo " ✅ Shell scripts syntax OK"
lint: ## Lint everything
@echo "Linting shell scripts..."
@find scripts/ bin/ -name '*.sh' -exec shellcheck -S warning {} \; 2>&1 | head -30 || true
@echo "Done."