The best way to deal with clutter is to not run your builds inside of a VCS repository. Use the lndir command to create a image of your repository and run your tools in there.
For example if your repo is named foo.
mkdir foo_cmp cd foo_cmp lndir ../foo .
foo_cmp is an exact image of foo. The only difference is that where foo has the real files, foo_cmp will have symbolic links back to the real files.
Run your build in foo_cmp. All generated files will stay in foo_cmp and never appear in foo. Your "make clean" routine only has to rm the foo_cmp directory and rebuild it.
It's clean simple and less work than maintaining all those makefiles.
John Eaton
--------------------------------------- Posted through
formatting link