mbake 是一个 Makefile 格式化器和检查器。它只用了 50 年时间!
{XDG_CONFIG_HOME}/bake.toml 自定义行为# Install from PyPI
pip install mbake
# Or install VSCode extension
# Search for "mbake Makefile Formatter" in VSCode Extensions# Format a Makefile
mbake format Makefile
# Check if formatting is needed (CI/CD mode)
mbake format --check Makefile
# Validate Makefile syntax
mbake validate Makefile
# Initialize configuration
mbake init# Format files
mbake format Makefile # Format single file
mbake format --check Makefile # Check formatting (CI/CD)
mbake format --diff Makefile # Show changes without modifying
# Validate syntax
mbake validate Makefile # Check Makefile syntax with GNU make
# Configuration
mbake init # Create config file
mbake config # Show current settings
mbake update # Update to latest version--check: 在不进行更改的情况下检查格式 (非常适合 CI/CD) - --diff: 显示将要进行的更改 - --backup: 在格式化前创建备份 - --validate: 在格式化后验证语法 - --timeout: 用于语法检查的超时时间 - --config: 使用自定义配置文件暂无开放 Issues,或尚未同步最近议题。