3 ms·
This approach is flawed because it uses "find" to discover the source files which means that if you delete a source file, it won't cause a rebuild since it won'
by bobbyi_settv 10y ago
This approach is flawed because it uses "find" to discover the source files which means that if you delete a source file, it won't cause a rebuild since it won't see any changed files.
- asveikau 10y agoAlso you can't conditionally build a .c or .cpp file without ifdefs in the source. Also you have to wait for find to run before any building starts. Can be slow for a large project.
- stormbrew 10y agoIt's probably possible to adapt it to do that by using find much like you use gcc -MM to get header deps, generating a make snippet that you then depend the executable output on. But then we're getting pretty nasty.
- deleted 10y ago[deleted]