4 ms·
With backslashes before newlines you can do “multiline oneliners” too.
by mbrock 7y ago
With backslashes before newlines you can do “multiline oneliners” too.
- jgrahamc 7y agoYep. One of the reasons I recommend the FSF manual is that it's a great introduction: https://www.gnu.org/software/make/manual/make.html#Splitting-Recipe-Lines https://www.gnu.org/software/make/manual/make.html#Splitting...
- dvdkhlng 7y agoYou can also do "multiline multiliners" by adding a target .ONESHELL. By overriding the variable SHELL, this allows you to put arbitrary multi-line scripts of your preferred programming language into makefile recipes. https://www.gnu.org/software/make/manual/html_node/One-Shell.html#One-Shell https://www.gnu.org/software/make/manual/html_node/One-Shell...