Coding⏱️ 1 min read📅 2026-05-31

How to Fix: makefile:4: *** missing separator. Stop

Fix missing separator in makefile for clean and make commands.

Quick Answer: The issue is caused by the dollar sign ("$") being used as a literal character instead of an escape sequence. Replace $@ and $< with or use double quotes around the command.

The error 'makefile:4: *** missing separator. Stop' occurs because the shell is not properly quoted in your make command. The '$@' and '$<' variables are expanded by the shell, but they are not enclosed in quotes or escaped with a backslash.

💡 Why You Are Getting This Error

  • [Cause]

✅ Best Solutions to Fix It

Method 1: Quoting Variables

  1. Step 1: Replace '$@' and '$<' with '$(@)' and '$(<)', respectively.

Method 2: Using Shell Escaping

  1. Step 1: Replace '$@' and '$<' with '\

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions