Saltar al contenido
TakoAPI
Volver a skills

makefile-build

por gitgoodordietrying

DevOps & Cloud
1.4kDescargas según clawskills.sh
3Estrellas
0Vistas
0 me gustaInicia sesión para dar me gusta a esta skill
—Aún sin valoraciones
Tu valoración

Resumen

Write Makefiles for any project type.

Descripción

Qué hace esta skill

Helps write Makefiles for build automation across any language or project type. Covers targets, variables, dependencies, phony targets, and pattern rules. Also covers Just and Task as simpler alternatives to Make.

Covers Make's notoriously confusing TAB requirement and phony target pitfalls alongside practical patterns for Go, Python, Node.js, and Docker, saving time spent reading man pages.

Cuándo usarla

  • Setting up a shared build workflow for a Go or Python repo
  • Replacing long Docker CLI commands with short make targets
  • Running lint, test, and build in the right order with one command
  • Adding a self-documenting help target to an existing project
  • Migrating from a Makefile to a Justfile or Taskfile

Flujo de trabajo de ejemplo

ENTRADA

User asks: Create a Makefile for a Go project with build, test, lint, and clean targets

AGENTE
  1. 1

    Identifies the project language as Go and the required targets

  2. 2

    Generates a Makefile with .PHONY declaration for all non-file targets

  3. 3

    Adds automatic variables like $@ and $^ to build and compile rules

  4. 4

    Includes a self-documenting help target using grep and awk on ## comments

  5. 5

    Sets VERSION using git describe --tags --always via shell assignment

SALIDA

A complete Makefile with build, test, lint, clean, and help targets, correct TAB indentation, and a VERSION variable derived from git tags

Instalación

clawhub install gitgoodordietrying/makefile-build

Ejecuta el comando de la CLI o pega el prompt en Claude Code, Cursor, Codex o el agente de programación que uses.

Enlaces