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.
[ Parent
| on HN ]
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.