Xref: utzoo comp.sources.wanted:2812 comp.lang.c:5748 Path: utzoo!utgpu!water!watmath!clyde!rutgers!iuvax!silver!creps From: creps@silver.bacs.indiana.edu (Steve Creps) Newsgroups: comp.sources.wanted,comp.lang.c Subject: Re: Desperately Seeking Makefile Maker Keywords: makefile Message-ID: <546@silver.bacs.indiana.edu> Date: 19 Dec 87 05:31:22 GMT References: <1034@cpocd2.UUCP> <538@silver.bacs.indiana.edu> <178@fxgrp.UUCP> Reply-To: creps@silver.UUCP (Steve Creps) Followup-To: comp.unix.questions Organization: Indiana University Computer Science Department Lines: 40 Note: followups to this discussion have been routed to comp.unix.questions, so you may want to hit "n" now. In article <178@fxgrp.UUCP> fxgrp!ljz@ames.arpa (Lloyd Zusman, Master Byte Software) writes: >In article <538@silver.bacs.indiana.edu> creps@silver.UUCP (Steve Creps) writes: >>In article <1034@cpocd2.UUCP> nate@cpocd2.UUCP (Nathan Hess) writes: >>> Is there a program available that creates makefiles, preferrably >>> written in C? >> ... >>You could say something like this: >>fgrep #include *.c *.h | awk -f makefile.awk >makefile >> ... > >This sort of thing is fine as far as it goes, but what about nested >includes? What about the differences between #includes that use >double quotes and those that use angle brackets? I thought that make was smart enough that if you do have nested #includes, it would pick this up. Am I wrong about this? That is, if you have the following lines in the makefile: aaa.c : bbb.h bbb.h : ccc.h and modified ccc.h, won't it know to recompile aaa.c? If so, the fgrep method should be OK. As for the #include's with < >'s (system includes), I don't think these are ever included in makefiles. If that's the case, then piping the output from the "fgrep #include" through an "fgrep -v \<" should take care of that problem. Anyway, I don't mean to argue about this; the program you mentioned is probably a good thing to have. This discussion is really getting off from what the groups involved are for, so I'm routing followups to comp.unix.questions. - - - - - - - - - Steve Creps on the VAX 8650 running Ultrix 2.0-1 at Indiana University. creps@silver.bacs.indiana.edu "F-14 Tomcat! There IS no substitute."