makefile-validator

Community

Validate Makefiles fast: syntax, style, security.

Authorakin-ozer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Makefile validator helps teams catch syntax errors, style issues, and security risks in their GNU Makefiles before they run builds, reducing failures and flaky CI.

Core Features & Use Cases

  • Syntax checks: detect missing colons, indentation issues, and syntax errors using a GNU Make dry-run and mbake-based checks.
  • Best-practices validation: ensure proper .PHONY declarations, safe variable usage, error handling, and formatting consistency.
  • Security checks: flag hard-coded credentials, unsafe variable usage, and risky commands to prevent credential leakage or accidental damage.
  • Use Case: When maintaining large Makefiles, run the validator as part of CI to enforce standards before approval.

Quick Start

Use the Makefile validator to check a Makefile:

  • bash scripts/validate_makefile.sh Makefile

Dependency Matrix

Required Modules

mbakepython3pip3make

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: makefile-validator
Download link: https://github.com/akin-ozer/cc-devops-skills/archive/main.zip#makefile-validator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.