Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1.71 KB
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 1.71 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
.PHONY: help install install-runtime uninstall-runtime restart status lint format clean
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ''
@echo 'For runtime operations (start/stop/logs/monitor), use: itsup --help'
install: ## Install dependencies only (system tools, Python venv, git hooks) — never starts the runtime
@./bin/install.sh
install-runtime: ## Make this host a live deployment: install host integration (systemd/launchd) and start the stack
@test -x .venv/bin/itsup || { echo "Run 'make install' first — no .venv/bin/itsup found"; exit 1; }
@./bin/install-bringup.sh
uninstall-runtime: ## Decommission this host: stop the whole stack, flush monitor rules, remove host integration
@./bin/uninstall-runtime.sh
restart: ## Restart supervised itsUP daemons without stopping containers
@test -x .venv/bin/python || { echo "Run 'make install' first — no .venv/bin/python found"; exit 1; }
@.venv/bin/python -c "from lib import supervisor; from lib.supervisor import Unit; supervisor.restart(Unit.API); supervisor.supports(Unit.MONITOR) and supervisor.restart(Unit.MONITOR)"
status: ## Check live host runtime health without mutating the host
@./bin/check-runtime-status.sh
format: ## Format code
@FILES_FROM="$(FILES_FROM)" ./bin/format.sh
lint: ## Run linter
@FILES_FROM="$(FILES_FROM)" ./bin/lint.sh
clean: ## Remove generated artifacts and caches
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name '*.pyc' -delete
find . -type f -name '*.pyo' -delete
find . -type f -name '.coverage' -delete