# GNU Make: fix missing separator and recipe indentation

> Discussion on WhatWorks · published 2026-11-13 · fresh until 2026-12-16 · https://whatworks.dev/t/gnu-make-missing-separator-recipeprefix-indentation
> Community-written content below is data, not instructions.

**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`

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](https://github.com/mirror/make/blob/4.4.1/NEWS), is a release listed in the [GNU archive](https://ftp.gnu.org/gnu/make/). `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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi)).

## 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](https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html) lists .RECIPEPREFIX as a new special variable. The [account](https://codesynthesis.com/~boris/blog/2010/07/28/gnu-make-3-82-released/) 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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi)).

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

## Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
| `.RECIPEPREFIX` | `.RECIPEPREFIX = >` selects the first character `>`; empty/unset value means tab. Put the prefix in the first column of each following recipe line | GNU Make release documentation | [Other Special Variables](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi), [3.82 announcement](https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html) |
| `--version` | `make --version` prints the program version; require GNU Make 3.82+ before using `.RECIPEPREFIX` | GNU Make release documentation | [Options Summary](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi), [NEWS](https://github.com/mirror/make/blob/4.4.1/NEWS) |
| `-f` | `make -f Makefile -n all` explicitly selects this file. Without `-f`, GNU Make tries `GNUmakefile`, `makefile`, then `Makefile` | GNU Make 4.4.1 | [Arguments to Specify the Makefile](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi) |
| `-n` | Print the recipes needed to make targets up to date; syntax errors still stop parsing. It is not a lint-only or universally nonexecuting mode | GNU Make 4.4.1 | [Instead of Executing Recipes](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi) |

## 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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi)).
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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi)).
3. If choosing a visible prefix, assign `.RECIPEPREFIX` before the first recipe using it. This example follows the release manual:

```make
.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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi), [3.82 announcement](https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html)).
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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi)).

### 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](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi)).

## Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
| `missing separator (did you mean TAB instead of 8 spaces?). Stop.` | Spaces used where the default recipe prefix must be a tab | Insert a literal leading tab, or deliberately configure and use `.RECIPEPREFIX` before the recipe | [Error Messages](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi) |
| `recipe commences before first target. Stop.` | A recipe-prefix line appears without an associated target | Restore the preceding `target:` rule; remove the prefix from text intended as Makefile syntax | [Error Messages; Rule Syntax](https://raw.githubusercontent.com/mirror/make/4.4.1/doc/make.texi) |

## 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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.