On Fri, Dec 8, 2023 at 7:38 PM Paul Smith wrote:
>
> In make it's fine to have a make line indented with a TAB, that is not
> part of a recipe. If a line appears outside of the context of a rule,
> then leading whitespace is ignored.
There is a section in the documentation called "How Makefiles
On Thu, 2023-12-07 at 11:38 -0500, Dmitry Goncharov wrote:
> On Tue, Dec 5, 2023 at 12:01 AM Aaron Williams
> wrote:
>
> > What is happening is I will get the error:
> > *** recipe commences before first target. Stop.
> > At the line with $(info xxx) unless I do not precede it with a tab.
>
> T
On Tue, Dec 5, 2023 at 12:01 AM Aaron Williams wrote:
> What is happening is I will get the error:
> *** recipe commences before first target. Stop.
> At the line with $(info xxx) unless I do not precede it with a tab.
This error is expected. A tab precedes a recipe.
It does not matter what the
If I have something like the following in my Makefile it is interpreting
$(info blah) as a recipe before a target.
ifneq ($(SOME_VAR),1)
[tab] SOME_OTHER_VAR=SOME_VALUE
[tab] $(info"Set SOME_OTHER_VAR=$(SOME_OTHER_VAR))
endif
recipes follow
What is happening is I will get the error:
***