make is one of the tools that we use heavily for streamlining tasks on our projects. It has proven to be helpful specifically for streamlining the ...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
I like the general idea of where this tutorial was going but there were some parts that either were not well described (@ symbol) or inconsistencies (env variables) that broke the flow, making it difficult to understand.
Hey Mark, thank you for the comment, I have written about `
@
symbol on the Notes section here.For environment variables, from where did you find it confusing? Is it the sub topic Variables itself or Include other Makefiles?
Let me know, I will update accordingly to make it more understandable. π
I have no idea what that means. It feels weird adding symbols to bash commands like that, where is the symbol interpreted?
But then the name of the variable is not βgreetingβ:
$ export INFO="Run make help to show
These sorts of small inconsistencies really break the flow of the entire piece.
Made the tweaks. On regards for the
@
symbol, that's the standard syntax for Makefile and just how it works to disable printing the recipe to your stdout. As the note section suggests, you can try to build a rule where there is no@
symbol in the recipe to see what it means.If you find the
@
symbol weird in front of the bash commands. you can run the commands with-s
flagto disable printing the recipe to your stdout.
Hope it helps. Cheers!
Itβs not clear to me what this means:
Are you saying that adding the @ causes make to suppress command output to stdout? Or is it that make doesnβt print the step name to stdout? Or something else?
It might be more obvious with some example make output.
Doing is knowing, so just try it out first!
Honestly I didnβt make it to the end of the article, I stopped after the second round of confusion.
Saw this pop up in my feed and was pleasantly surprised to see you spreading the word about self-documenting Makefiles! ππ
My article youβve linked is here on dev.to as well, in case folks want to stay on the site: dev.to/victoria/how-to-create-a-se...
Thanks for sharing your tips, Yankee!
Thanks to you, using Makefiles has been more intuitive Victoria π
Also, updated link to your article and profile accordingly.
I like it! Make is a bit of a forgotten tool nowadays, but I hadn't thought of using it for anything besides actual builds.
Thank you! Hope it helps in your workflow π
okay...nice insight of make files. I have used make file for c++ but didn't know we can use it like this in a general way
Awesome! π