|
From: | Aaron Williams |
Subject: | Bug with $(info xxx) in 4.2.1 |
Date: | Mon, 4 Dec 2023 19:56:52 -0800 |
User-agent: | Mozilla Thunderbird |
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:
*** recipe commences before first target. Stop.
At the line
with $(info xxx) unless I do not precede it with a tab.
According to the documentation, $(info) should be allowed
everywhere and should not be considered a recipe. My guess is
it is not detected as an exception to being a recipe.
-Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |