C + Make

Mike Percy grimlok at hubcap.clemson.edu
Tue Sep 18 03:59:09 AEST 1990


throopw at sheol.UUCP (Wayne Throop) writes:

>> From: grimlok at 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 at hubcap.clemson.edu
ISD, Clemson University       mspercy at clemson.BITNET
(803)656-3780                 mspercy at clemson.clemson.edu



More information about the Comp.lang.c mailing list