Re:The Makefile I use with JavaScript projects
by jgh on Wednesday February 28, 2018 @12:04PM
(#16484505)
It lets you generate makefiles in a less verbose way. Like if you have a lot of files in a project or a bunch of targets Makefiles can get a bit unwieldy by themselves.
I've only ever used it for C++, but I don't see why it (or something like it) couldn't be used for other languages too.
Re:The Makefile I use with JavaScript projects
by isaachier on Wednesday February 28, 2018 @12:07PM
(#16484533)
CMake is mostly dedicated to C/C++ projects, but also has built-in support for assembly, Fortran, and Java. CMake has templates for adding a new language as well. The benefits are: cross-platform "shell" commands (you can copy files without using an explicit cp), standard lookup for programs, and easy target generation from a collection of files. Most languages are pretty similar to C/C++ when it comes to the build cycle. Portability (i.e. testing for existence of headers) is less of a concern for something like Javascript, but everything else still applies.
What would you gain if you're using it for other, less supported languages, like Javascript?