A question on C programming style

Richard Caley rjc at cstr.ed.ac.uk
Tue Apr 23 04:10:50 AEST 1991


[Slightly off C but...]

In article <memo.942884 at lynx.northeastern.edu>, cschmidt  (c) writes:

c> One obvious advantage to this approach is that the dependency list is
c> always guaranteed to be up to date.  When using a conventional
c> dependency generator, there is a temptation to postpone using it.

There is another (IMHO better) solution. The Makefile can arrange for
the dependencies to be recalculated when necessary, that is after all
what make is good for.

You need a make which understands `include' directives, but after that
it is relatively painless.  

Details left as an excorcise.

--
rjc at cstr.ed.ac.uk			_O_
					 |<



More information about the Comp.lang.c mailing list