3 ms·
$ being used for both make and shell replacements, leading to $$$$(var) abominations and the general lack of clarity as to which variables are for which things
by mmphosis 4y ago
$ being used for both make and shell replacements, leading to $$$$(var) abominations and the general lack of clarity as to which variables are for which things
There was another comment asking why not just use a shell script? If I don't care about dependencies that's what I would do, but I often do care about dependencies. So I call a shell script from my Makefile to do all the weird and wild things I want to do. Make checks the dependencies and I avoid having to use $$ in my Makefile.
site/index.html: html/mk.sh html/index.html binary
$^ $@