Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!grimlok From: grimlok@hubcap.clemson.edu (Mike Percy) Newsgroups: comp.lang.c Subject: Re: C + Make Message-ID: <10497@hubcap.clemson.edu> Date: 17 Sep 90 17:59:09 GMT References: <10442@hubcap.clemson.edu> <0946@sheol.UUCP> Organization: Clemson University, Clemson, SC Lines: 28 throopw@sheol.UUCP (Wayne Throop) writes: >> From: grimlok@hubcap.clemson.edu (Mike Percy) >> If you want to make your makefile reflect the include heirarchy try >> [.. having "make" steps that touch ".h" files ..] >> This does have the side effect of perhaps changing the time stamps on >> a,h and b.h when their contents haven't changed, but I don't mind that. >There are problems with this method. Mike may not mind them, but I've received some comments on this. When I posted this, I tried to make it clear that "this works for me," to ephasize that I may be counting on some strangeness of TC's make. If it's wrong or "ugly" then you have my appologies. It works for me, but I'd like to point out that I've only had to do it for a very limited number of things that I've ported (i.e. someone else's code!). I personally don't have includes in a .h file, so I never have to deal with it. I also am not running in any sort of multi-programmer situations, so I don't have to worry about mangling the timestamps. Obviously, folks, there are better ways... "I don't know about your brain, but mine is really...bossy." Mike Percy grimlok@hubcap.clemson.edu ISD, Clemson University mspercy@clemson.BITNET (803)656-3780 mspercy@clemson.clemson.edu