by beagle3 · 13y ago · 0 comments
I still use Make occasionally, but redo (https://github.com/apenwarr/redo) just fits my mind better - it's simple, consistent, doesn't require keeping another language with its dark corners (it's just shell scripts), and works well.
It also solves the bootstrap problem - there's a short script called "do", which always rebuilds everything, all of 177 of non-minified bash script. If you need to distribute anything, you should distribute it with "do" inside - and guarantee that your users can build without relying on an installed package (or a specific version of GNU Make).
p.s: OS/X, Linux and BSD supported. Supposedly, windows through cygwin or busybox - but I've never tried.
It doesn't take care of the problem, it mitigates it. It tries to find the most POSIX-like shell. You still don't know which shell that will be. And then, even if you did, you are still relying on external programs, which may all work differently than the ones on your box. Writing portable shell scripts is hard.
To rebuild everything with Make, you can use the -B switch:
-B, --always-make
Unconditionally make all targets.