Skip to content

Makefile Targets

The Makefile at the repository root provides shortcuts for common tasks. Run make help to see all targets with descriptions.

Display all available targets with descriptions.

Terminal window
make help

List all target names (without descriptions), sorted alphabetically.

Terminal window
make ls

Run the setup script to install standards in a project. This copies .cursorrules, agent configuration files, Cursor commands, and git hooks into the project root.

Terminal window
make setup

Equivalent to running ./scripts/setup.sh.

Pull the latest standards from the remote and update all configuration files (.cursorrules, .aiderrc, .codexrc, .github/copilot-instructions.md, .gemini/). Also syncs Cursor custom commands and checks git aliases.

Terminal window
make sync-standards

Equivalent to running ./scripts/sync-standards.sh.

Check whether the local standards submodule is up to date with the remote. Exits with code 1 if updates are available, making it suitable for CI pipelines.

Terminal window
make check-standards

Example output when standards are current:

Standards are up to date

Example output when updates are available:

Standards are out of date. Run 'make sync-standards'

Pull the latest commit from the standards remote and copy the updated .cursorrules into the project root.

Terminal window
make update-standards

Set up AI agent configuration files without running the full setup. Useful when you want to add agent configs to a project that already has .cursorrules.

Terminal window
make setup-agents

Create a pull request that adds .github/copilot-instructions.md to the repository. The script creates a feature branch, commits the file, pushes, and opens a PR via GitHub CLI.

Terminal window
make add-copilot-instructions

Requires GitHub CLI (gh) to be installed and authenticated.

Lint all Markdown files using markdownlint (if installed).

Terminal window
make lint

Format all Markdown files using prettier (if installed).

Terminal window
make format

Validate shell script syntax for setup.sh and sync-standards.sh using bash -n.

Terminal window
make test-scripts
TargetDescription
helpShow all targets with descriptions
lsList target names
setupFirst-time project setup
sync-standardsPull latest and update all configs
check-standardsCheck if standards are current (CI-friendly)
update-standardsPull latest submodule commit
setup-agentsInstall agent configs only
add-copilot-instructionsPR to add Copilot instructions
lintLint Markdown files
formatFormat Markdown files
test-scriptsValidate script syntax