3 ms·
Your solution isn't a solution, because it is not actually a Makefile. Your shell script and Makefile both need to be run, in the correct order, by a meta buil
by Peaker 14y ago
Your solution isn't a solution, because it is not actually a Makefile.
Your shell script and Makefile both need to be run, in the correct order, by a meta build-system.
It won't re-generate just the right files when things change. Unless you always regenerate all the code, and that's gonna be very wasteful.
It won't parallelize things as possible. The code generation can be parallelized with parts of the build that don't depend on it.
It won't rescan just the right files (it will do more work than necessary).
Compare that with a real build system, such as tup or shake, that gets all of these properties right.