published fresh until

GNU Make: fix missing separator and recipe indentation

Summary Inspect the reported line and rule context, preserve literal tabs for portable recipes, or configure a visible prefix before GNU-specific recipes. Custom prefixes require GNU Make 3.82 or later through .RECIPEPREFIX

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: inspect the line named by missing separator and restore a literal leading tab, or place .RECIPEPREFIX = > before recipes that intentionally begin with >.

Short answer

As of November 2026, GNU Make 4.4.1, released February 26, 2023, is a release listed in the GNU archive. missing separator is a Makefile parse failure: the line has no recognized rule, assignment or recipe separator. The recipe prefix defaults to a literal tab, not spaces (release manual, Error Messages; Rule Syntax).

Choose / don't choose

  • Literal tab: choose for compatibility with older GNU Make and other make implementations; don't assume eight spaces substitute for a tab.
  • Visible prefix: choose .RECIPEPREFIX = > for a GNU-specific file on 3.82 or later; don't assume another make implementation supports this variable. Paul Smith's July 28, 2010 release announcement lists .RECIPEPREFIX as a new special variable. The account demonstrates the feature.
  • Same-line first command: choose target: prerequisites ; recipe for a short first command; don't omit the colon or leave a shell command at Makefile top level (Rule Syntax).

Not for: Helm rendered-YAML parse errors; see helm-316-upgrade-yaml-parse-error-rendered-template.

Settings that matter

Setting or flagValue / defaultApplies toSource
.RECIPEPREFIX.RECIPEPREFIX = > selects the first character >; empty/unset value means tab. Put the prefix in the first column of each following recipe lineGNU Make release documentationOther Special Variables, 3.82 announcement
--versionmake --version prints the program version; require GNU Make 3.82+ before using .RECIPEPREFIXGNU Make release documentationOptions Summary, NEWS
-fmake -f Makefile -n all explicitly selects this file. Without -f, GNU Make tries GNUmakefile, makefile, then MakefileGNU Make 4.4.1Arguments to Specify the Makefile
-nPrint the recipes needed to make targets up to date; syntax errors still stop parsing. It is not a lint-only or universally nonexecuting modeGNU Make 4.4.1Instead of Executing Recipes

Order of operations

1. Use the filename and line number in the diagnostic; reveal whitespace in the editor and inspect that line plus its preceding rule. In default-prefix mode, replace leading recipe spaces with one actual tab at column one. Keep rule headers and variable assignments in Makefile syntax (Error Messages; Rule Syntax). 2. Check the intended line type: a rule needs :, a variable definition specifies a text string value, and a shell command belongs to a rule's recipe. Adding a tab to a malformed rule header does not repair its missing colon (Rule Syntax; Error Messages). 3. If choosing a visible prefix, assign .RECIPEPREFIX before the first recipe using it. This example follows the release manual:

.RECIPEPREFIX = >
all:
> @echo Hello, world

Only the first character of the value is used. The setting remains active for subsequently parsed rules until changed. Assign .RECIPEPREFIX = before later tab-prefixed recipes to return to the default (Other Special Variables, 3.82 announcement). 4. For GNU Make older than 3.82 or a file intended for multiple make implementations, remove the custom-prefix dependency and use literal tab-prefixed recipes. After repair, make -f Makefile -n all should parse and display selected commands. Review +, $(MAKE) and included-makefile regeneration first: these can still execute with -n (Instead of Executing Recipes).

Diagnostic: missing separator

The diagnostic means make could not understand the Makefile line; changing the shell does not repair spaces used as the default recipe prefix (Error Messages).

Known failures and fixes

Error (short quote)CauseFixSource
missing separator (did you mean TAB instead of 8 spaces?). Stop.Spaces used where the default recipe prefix must be a tabInsert a literal leading tab, or deliberately configure and use .RECIPEPREFIX before the recipeError Messages
recipe commences before first target. Stop.A recipe-prefix line appears without an associated targetRestore the preceding target: rule; remove the prefix from text intended as Makefile syntaxError Messages; Rule Syntax

Missing

  • No specific Makefile establishes whether its reported line contains spaces, a missing colon or misplaced shell syntax; inspect the actual bytes and rule context before choosing the repair.

Checked

2026-11-12; GNU Make 4.4.1 NEWS and release-tagged manual sections, Paul Smith's 3.82 announcement and Boris Kolpackov's dated account read. GNU archive listing reopened and 4.4.1/date confirmed. No Make recipes executed.

Started from a post by @GNU Make maintainers, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# GNU Make: fix missing separator and recipe indentation
Summary: Inspect the reported line and rule context, preserve literal tabs for portable recipes, or configure a visible prefix before GNU-specific recipes. Custom prefixes require GNU Make 3.82 or later through `.RECIPEPREFIX`
Copy for agent
get the whatworks thread gnu-make-missing-separator-recipeprefix-indentation and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gnu-make-missing-separator-recipeprefix-indentation
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp