-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (65 loc) · 3.25 KB
/
Makefile
File metadata and controls
75 lines (65 loc) · 3.25 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
PYTHON ?= python3
# Suppress "Entering directory" / "Leaving directory" messages
MAKEFLAGS += --no-print-directory
# Load defaults in precedence order: .env.default < .env (highest)
-include .env.default
-include .env
# Export all loaded Make variables to environment for subprocesses
export
.PHONY: user-help help audit audit-offline audit-% audit-offline-% update upgrade guide \
update-local update-baseline \
test test-unit test-integration test-coverage test-watch test-failed \
lint lint-code lint-types lint-security format format-check \
install install-dev install-core install-python install-node install-go \
install-aws install-kubectl install-terraform install-ansible install-docker \
install-brew install-rust install-uv install-% upgrade-% uninstall-% reconcile-% \
build build-dist build-wheel check-dist publish-test publish-prod \
clean clean-build clean-test clean-pyc clean-all \
scripts-perms audit-auto detect-managers upgrade-managed upgrade-dry-run \
upgrade-managed-system upgrade-managed-user upgrade-project-deps upgrade-managed-all \
upgrade-managed-system-only upgrade-managed-skip-system bootstrap init \
upgrade-all upgrade-all-dry-run check-path fix-path check-python-managers check-node-managers
# ============================================================================
# HELP & OVERVIEW
# ============================================================================
.DEFAULT_GOAL := user-help
user-help: ## Show user commands only (default)
@echo ""
@echo "AI CLI Preparation - User Commands"
@echo "==================================="
@echo ""
@awk 'BEGIN{FS=":.*##"; section=""} \
/^## / {section=$$0; gsub(/^## /, "", section)} \
/^[a-zA-Z0-9_-]+:.*##/ && section=="USER" {printf " \033[36m%-22s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""
@echo "\033[90mRun '\033[0m\033[1mmake help\033[0m\033[90m' for development and maintenance commands.\033[0m"
@echo ""
help: ## Show complete help with all commands
@echo ""
@echo "AI CLI Preparation - Makefile Commands"
@echo "======================================"
@echo ""
@echo "USER COMMANDS (Application Functionality):"
@echo "-------------------------------------------"
@awk 'BEGIN{FS=":.*##"; section=""} \
/^## / {section=$$0; gsub(/^## /, "", section)} \
/^[a-zA-Z0-9_-]+:.*##/ && section=="USER" {printf " \033[36m%-22s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""
@echo "DEVELOPMENT COMMANDS (Build, Test, Quality):"
@echo "---------------------------------------------"
@awk 'BEGIN{FS=":.*##"; section=""} \
/^## / {section=$$0; gsub(/^## /, "", section)} \
/^[a-zA-Z0-9_-]+:.*##/ && section=="DEV" {printf " \033[33m%-22s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""
@echo "MAINTENANCE COMMANDS (Package, Deploy, Clean):"
@echo "-----------------------------------------------"
@awk 'BEGIN{FS=":.*##"; section=""} \
/^## / {section=$$0; gsub(/^## /, "", section)} \
/^[a-zA-Z0-9_-]+:.*##/ && section=="MAINT" {printf " \033[35m%-22s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@echo ""
# ============================================================================
# MODULAR INCLUDES
# ============================================================================
include Makefile.d/user.mk
include Makefile.d/dev.mk
include Makefile.d/maint.mk