I've encountered this frustrating issue before! Often, it stems from inconsistent indentation where the space and tab sizes are set to the same value.
To fix it, try updating your tab size to 3
or 4
spaces. This usually resolves the problem.
You can easily visualize the indentation in your Makefile by using the command:
Bash
cat -A Makefile
This command will reveal how your indentation is represented. Specifically, if your commands are correctly indented with tabs, you'll see a ^I
character at the beginning of those lines, like this:
^I@echo "Current WORKSPACE: $(WORKSPACE)"$
^I
signifies a true tab character, which is crucial for Makefiles.