Skip to main content

Makefile Commands Reference

TL;DR: This project has 124 Makefile targets. Start with make help-common for the most frequently used commands.

Overview

This document provides a comprehensive reference for all Makefile commands available in this project. Commands are organized by category for easy navigation.

Quick Start


Command Categories


Testing (52 commands)

Core Testing

Coverage Reports

Recommendation: Use make test-coverage for comprehensive reports. Use make test-coverage-fast during rapid iteration.

Fast Testing Shortcuts

Recommendation: Use make test-dev (recommended) for rapid iteration. Use make test-fast-core for ultra-fast smoke checks.

Quality Tests

Recommendation: Run make test-all-quality before creating PRs.

Specialized Testing

Infrastructure Testing

Deployment Testing

Incremental Testing

Tip: Coverage targets are computed using .coverage file. Run make clean to reset coverage data.

Validation (12 commands)

See VALIDATION_STRATEGY.mdx for complete details on tiered validation.

Specific Validators

Recommendation: Use tiered validation shortcuts (validate-commit, validate-push, validate-full) for better developer experience.

Documentation (10 commands)

Primary Commands

Specialized Validators

Recommendation: Use make docs-validate-mintlify as the primary validator. It’s comprehensive and authoritative.

Setup & Infrastructure (7 commands)

Complete Setup

Dependencies

Infrastructure Services

Tip: Run make dev-setup once for complete environment setup. Then use make setup-infra to restart services as needed.

Deployment (6 commands)

Deploy to Environments

Rollback Deployments

Tip: All deployments validate configs before applying. Use make validate-deployments to check without deploying.

Linting & Code Quality (5 commands)

Tip: Use make lint-fix before committing to auto-fix most issues. Use make lint-check to verify without modifying files.

Monitoring & Logs (5 commands)

View Logs

Open Dashboards

Tip: Use make logs-follow to monitor all services during development.

Database (3 commands)

Note: db-restore target exists for restoring from backups.

Running (2 commands)

Tip: Use make run for standard MCP server. Use make run-streamable for HTTP-based streaming.

Health Checks (2 commands)

Recommendation: Use make health-check-fast for quick verification during development.

Utilities (10 commands)

Cleanup

Performance & Load Testing

Git & CI Utilities

Reporting

Help


Command Naming Conventions

Commands follow consistent naming patterns for easy discovery:

Frequently Asked Questions

Which test command should I use?

For rapid iteration: make test-dev (1-2 min, fail-fast, parallel) For comprehensive testing: make test (3-5 min, coverage, parallel) Before creating PR: make test-all-quality (quality gates) Matching CI exactly: make test-ci (8-12 min, XML coverage)

Which validation command should I use?

Before commit: make validate-commit (<30s, Tier 1) Before push: make validate-push (3-5 min, Tier 2) - auto-runs on git push Before PR: make validate-full (12-15 min, Tier 3) See VALIDATION_STRATEGY.mdx for complete details.

How do I run just one test file?

How do I skip slow tests?

How do I run tests in parallel?

How do I generate coverage reports?

How do I debug failing tests?

How do I validate documentation?

How do I clean up after tests?


Performance Tips

Fast Iteration Workflow

Incremental Testing

Parallel Execution


Troubleshooting

”Command not found: make”

Install make for your system:

“uv: command not found”

Install uv (the package manager):

“Pre-commit hooks failed”

Run hooks manually to see details:

“Tests hanging or timing out”

Check for async mock issues:

“Coverage report not generated”

Ensure coverage data exists:

  • Validation Strategy: VALIDATION_STRATEGY.mdx - Complete guide to tiered validation
  • Testing Guide: tests/README.md - Test organization and patterns
  • Pre-commit Guide: .pre-commit-config.yaml - Hook configuration
  • GitHub Actions: .github/workflows/ - CI/CD workflows
  • TDD Standards: /home/vishnu/.claude/CLAUDE.md - Global TDD requirements

Contributing

When adding new Makefile targets:
  1. Follow naming conventions - Use consistent prefixes (test-, validate-, docs-, etc.)
  2. Add help text - Use ## comment after target name for make help
  3. Test thoroughly - Ensure target works in clean environment
  4. Update this document - Add new target to appropriate category
  5. Consider deprecation - Use deprecation warnings for replaced targets
Example:

Last Updated: 2025-11-16 (CI/CD Optimization - Phase 4 & 5) Total Commands: 124 targets Version: 2.0.0 Status: Active