Re:Why Use Make? (2013)
by epistasis on Saturday March 29, 2014 @01:48PM
(#7493102)
I use a ton of inline shell in make for data munging. I often put
SHELL=/bin/bash
at the top of the Makefile when I use bashisms to construct complex pipelines.
And once, in a fit of mad genius, I made a particularly complex and useful Makefile executable by putting #!/usr/bin/make -f at the top. (It was a bad idea, obviously, and I won't be doing that again.)
For large file based datasets, the shell is just a REPL.
SHELL=/bin/bash
at the top of the Makefile when I use bashisms to construct complex pipelines.
And once, in a fit of mad genius, I made a particularly complex and useful Makefile executable by putting #!/usr/bin/make -f at the top. (It was a bad idea, obviously, and I won't be doing that again.)
For large file based datasets, the shell is just a REPL.