enumerating and keeping up to date the list of sources

The correct solution is just to explicitly list your source files. This way you know exactly what is in a given build.

See this thread for more.

1 Like