#nexttimecanweusecmakeplease — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #nexttimecanweusecmakeplease, aggregated by home.social.
-
My gosh, just when I think I've got it figured out, GNU GNoes ahead and screws me over again with some obscure syntax. #Makefiles #NextTimeCanWeUseCMakePlease #WeHaveCMakeAtHome
Turns out if you want to declare a local variable in a Makefile recipe, you can't just do `var_name := value`. Oh, no. That would be too intuitive. No, you have to do it like this:
```
recipe_name: var_name := value
recipe_name:
printf "Now I finally get to use my variable: ${var_name}"
```