bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #59956] Recipes inside conditionals can break the parser


From: Bogdan V
Subject: [bug #59956] Recipes inside conditionals can break the parser
Date: Wed, 27 Jan 2021 18:24:50 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0

Follow-up Comment #3, bug #59956 (project make):

Thanks for the even more detailed explanation than on Stack Overflow :)
I didn't realize special targets like *.ONESHELL:* can also have a recipe.
 
As a clarification, when I mentioned *.RECIPEPREFIX:* I was also implying
actually using it in the recipe:


.ONESHELL:
.RECIPEPREFIX = >
ifeq (1,0)
test:
>@if [ "asd" == "123" ]; then
>       echo "true"
>else
>       echo "false"
>fi
endif


I guess *>else* is not seen as a valid token and that's why it works.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59956>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]