Re: Symbol links to only needed and targeted source files

Michael Tokarev
2007-01-05T12:00:49Z

Pelle Svensson wrote:
> Hi Sam,
>
> You misunderstand me I think, I already using a separate output directory.
> What I like to do is a separate 'source tree' with only valid files
> for my configuration. In that way, when I use grep for instance,
> I would only hit valid files and not 50 other files which are
> not in the current build configuration.

So take a look at those generated files - there are .dep files in there,
which lists dependencies of every file which has been compiled for your
configuration. Take them, build a list of filenames, and (sym)link them
into separate dir. Some small awk/sed/grep/sort/uniq/xargs/ln magic and
you're done... ;)

/mjt