On Wed, Jan 12, 2011 at 4:58 PM, Michael G Schwern <schw...@pobox.com> wrote: > The major downside is all those .do files everywhere. Who's going to write > them? Wouldn't it be nice if there was something to GENERATE them?
It seems crazy to spread ".do" files all over the filesystem. That seems like a maintenance nightmare. I would think it would be much more efficient to put all the recipes in one file. For every recipe, you could list the file generated and the commands used to create it. The other thing you could do is list any dependencies needed. So trying to build one thing could trigger other things to be built, too, if they were out of date. Plus there's a lot of redundancy. The rules to compile a .c file are pretty much the same so you could abstract those away and give a general recipe for compile C files to object files and so on. Oh, wait, we have that already. It's called a Makefile. :-) -- David