Re:The Makefile I use with JavaScript projects
by vetinari on Wednesday February 28, 2018 @12:07PM
(#16484534)
On the other hand, make invokes well known shell commands; I already know what they do, when I see them used.
If you are invoking your functions (or functions imported from random library), I have to check them for what they do.
Re:The Makefile I use with JavaScript projects
by sneak on Wednesday February 28, 2018 @12:02PM
(#16484487)
it is possible that if you need to do that much in a makefile that you are running into shell incompatibilities then perhaps you are attempting to cram too much complexity into your build system and perhaps should be using something like Docker to decrease incidences of “works on my machine/os/distro/et c”.
(I am aware that this advice does not hold true in all cases; just that for many of them overly complicated build systems is a code smell.)
Make, in contrast, works within a shell and invokes programs which may be either wildly or subtly incompatible across platforms. Add in the lacking support for conditionals in POSIX make and portability is a nightmare.