make

Run Makefile targets one at a time and inspect build logs.

1|Updated Aug 14, 2024
One-click install
npx skills add https://github.com/bresilla/dot --skill make
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: make
Source: https://github.com/bresilla/dot/tree/main/.config/opencode/skill/make
Command: npx skills add https://github.com/bresilla/dot --skill make

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces safe, incremental Makefile usage to avoid destructive targets and unnecessary rebuilds, empowering faster, more reliable development cycles.

Core Features & Use Cases

  • Safe Make usage: Run Make targets one at a time, avoiding chained commands or directory changes that could trigger destructive steps.
  • Incremental builds: Prioritize non-destructive targets to preserve caches and speed iteration.
  • Use case: In a project with a mix of config, build, and cleanup targets, apply this Skill to ensure only the intended target runs per command.

Quick Start

Run a single target, then review the build logs before the next step.

Frequently Asked Questions about make

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Makefile targets safely without triggering destructive build steps?

To ensure safe Makefile usage, run a single target per invocation and avoid piping or chaining commands. This practice prevents accidentally triggering destructive cleanup steps and preserves caches during incremental builds.

What is the best way to use Make for incremental builds in local development?

The best way to use Make for incremental builds is to invoke non-destructive targets one at a time. This approach preserves existing build caches and speeds up iteration cycles without running unnecessary rebuilds.

How do I inspect Make build logs for quick error feedback?

You can inspect Make build logs by reading files like .complog and .quickfix after running a target. Reviewing these logs provides quick guidance and feedback before executing the next build step.

Can I chain multiple Make targets in a single command for CI environments?

Chaining multiple Make targets in a single command is not recommended for CI environments. To maintain build safety and predictability, you should enforce one-target-per-invocation and avoid chained commands or directory changes.

Why do my Makefile builds keep running destructive cleanup tasks?

Makefile builds may run destructive tasks if commands are chained or if multiple targets are invoked simultaneously. To prevent this, apply a workflow that strictly enforces running only one non-destructive target per command.

When should I avoid chaining commands in a Makefile workflow?

You should avoid chaining commands in a Makefile workflow whenever a project contains a mix of config, build, and cleanup targets. Chaining risks triggering destructive steps, so running single targets ensures predictable builds.