h files that include h files

Scot Mcintosh psm at manta.NOSC.MIL
Wed Jan 17 10:26:44 AEST 1990


In a makefile, how should one handle the case where some
of the .h files include other .h files?  I see two 
possibilities: make dependencies for them, and 'touch'
the dependent ones, thus causing the .c files that depend on
them to be made.  Or, examine all of the .h files, figure out
the nesting and then put all of the pertinent ones in
the .c file's dependency.

Neither of these is particularly appealing.  How does
the Unix world handle this kind of thing? (If you haven't
guessed, I'm not that experienced with Unix yet).  Thanks.

-- 
----
Scot McIntosh
Internet: psm at helios.nosc.mil
UUCP:     {ihnp4,akgua,decvax,decwest,ucbvax}!sdscvax!nosc!psm



More information about the Comp.unix.questions mailing list