makefile
Installation
SKILL.md
Makefile
Project automation with GNU Make.
Basic Structure
# Variables
APP_NAME := myapp
VERSION := 1.0.0
# Default target (first target)
.DEFAULT_GOAL := help
# Phony targets (not files)
.PHONY: help build run test clean
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'