I'm learning to work with GNU make and I'm reading the manual (which is very good) but I'm missing a cheat-sheet for quick reference. Is there any good?
Note: It's quite hard to find to google this.
$@ is the name of the target being generated, and $< the first prerequisite (usually a source file). You can find a list of all these special variables in the GNU Make manual.
The @ symbol is commonly seen at the beginning of an action lines and means that the action line itself is not be be echoed on the screen as it is executed. Macros are commonly used in makefiles to decrease the amount of typing required.
And in your scenario, $MAKE is used in commands part (recipe) of makefile. It means whenever there is a change in dependency, make executes the command make --no-print-directory post-build in whichever directory you are on.
Here is one by Frank Schacherer.
I have made my own. It is definitely not a perfect one but it served me well:
Note: The source for the slides is the official manual.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With