I wrote a make replacement that makes it very simple, but otherwise it is very experimental / not officially supported, etc. You can download it from https://github.com/dascandy/bob .
You could probably write this as:
FLAGS= -Wall -Wextra -Wfloat-equal
or alternatively with intermediate objects (better for large projects, but probably useless for small exercises)
FLAGS= -Wall -Wextra -Wfloat-equal
The tool itself requires the installation of Boost.Filesystem.
If you want to have a default target that compiles all executables, add the following lines:
.*.out => all echo -n
(the echo is that he expects all the rules to have a command)
source share