Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

Makefile

Guidelines when dealing with Makefiles

majiayu000 53eb2c5 2 files · 966 B Updated 567 repo stars

File contents

Makefile Formatting

Instructions

When writing or modifying Makefiles, follow these formatting guidelines:

  1. Each target should have a .PHONY declaration
  2. Format should follow this pattern:
    • .PHONY: target-name on its own line
    • target-name: on the next line
    • Commands indented with a tab
    • Empty line between targets

Example

.PHONY: foo
foo:
	@echo 'foo'

.PHONY: bar
bar:
	@echo 'bar'

When to Use

Apply these guidelines when:

  • Creating new Makefile targets
  • Modifying existing Makefiles
  • Reviewing Makefile code

majiayu000/claude-skill-registry-data/tree/main/design/makefile commit 53eb2c5754

Frequently asked questions

npx skillmds add majiayu000/makefile-2