The Language Agnostic, All-Purpose, Incredible, Makefile
blog.mindlessness.life
The Language Agnostic, All-Purpose, Incredible, Makefile
1–10 of 124 posts
Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#2However, there is one thing which Make absolutely cannot handle, and that is file names with spaces. If you have any risk of encountering these without any possibility of renaming them, you’ll sadly have to give up on using Make; it just won’t work.
Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#3Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#4Make is great, and I wish more people would use it in place of whatever monstrosity is en vogue this week. However, there is one thing which Make absolutely cannot handle, and that is file names with spaces . If you have any risk of encountering these without any possibility of renaming them, you’ll sadly have to give up on using Make; it just won’t work.
Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#5I like make, but I had a lot more luck with just/justfile, which is similar to make conceptually but with less idiosyncratic syntax/execution.
https://stackoverflow.com/questions/9838384/can-gnu-make-han...
Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#6Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#7Make is great, and I wish more people would use it in place of whatever monstrosity is en vogue this week. However, there is one thing which Make absolutely cannot handle, and that is file names with spaces . If you have any risk of encountering these without any possibility of renaming them, you’ll sadly have to give up on using Make; it just won’t work.
Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#8Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#9For everything else, it is absolutely horrible.
What I typically do is use make only for what it is good: as a dependency resolution back-end.
All the build logic for my projects is written in Python, in an executable file stored in the project root directory and called "make" (I have "." in my PATH).
The Python script, when it runs, generates on the fly a clean, lean, readable, unrolled, Makefile and feeds it directly to /usr/bin/make via a pipe.
Works like a charm:
Python (a sane and expressive programing language) to express the high-level logic needed to build the project.
Make as a solid back-end to solve the "what needs to be rebuilt" problem (especially the parallel version with -jXX)
Re: The Language Agnostic, All-Purpose, Incredible, Makefile
#10I like make, but I had a lot more luck with just/justfile, which is similar to make conceptually but with less idiosyncratic syntax/execution.
Very nice after a quick look. Too bad it's not as common as `make`.