News for hackers. Stuff that matters.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by bobbyi_settv on Friday August 26, 2016 @10:14AM (#12366382)
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.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by stormbrew on Friday August 26, 2016 @11:20AM (#12366847)
It'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.
Re:A Simple Makefile for Medium-Sized C/C++ Projects by asveikau on Friday August 26, 2016 @10:21AM (#12366443)
Also 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.