Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!nosc!manta!psm From: psm@manta.NOSC.MIL (Scot Mcintosh) Newsgroups: comp.unix.questions Subject: h files that include h files Message-ID: <997@manta.NOSC.MIL> Date: 16 Jan 90 23:26:44 GMT Reply-To: psm@manta.nosc.mil.UUCP (Scot Mcintosh) Distribution: na Organization: Naval Ocean Systems Center, San Diego Lines: 17 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@helios.nosc.mil UUCP: {ihnp4,akgua,decvax,decwest,ucbvax}!sdscvax!nosc!psm