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

Reply via email to