home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!fiber-one!sundar
- From: sundar@fiber-one.ai.mit.edu (Sundar Narasimhan)
- Newsgroups: comp.unix.questions
- Subject: fast recompilation / question on make/makedepend
- Message-ID: <25811@life.ai.mit.edu>
- Date: 24 Jul 92 17:55:08 GMT
- Sender: news@ai.mit.edu
- Reply-To: sundar@ai.mit.edu
- Organization: MIT Artificial Intelligence Laboratory
- Lines: 20
-
- makedepend creates a list of .h files that your .c or .C files depend
- upon. This is useful most of the time.
-
- Some of the time, I change a .h file that is included by a number
- of my systems. I'd like to find out all the libraries (.c or .C files
- in libraries) and programs that use this .h file. (Sort of like
- what the who-calls database does in Lisp). I know I can
- cd to each one of these libraries/program directories and type make
- (in fact, this is what I do currently). However, it seems there
- should be a simpler way, no?
-
- Let's make the problem even simpler. Let's say you have
- ./liba/foo.C -->includes ../public/x.h
- ./libb/bar.C -->includes ../public/x.h
- ./public/x.h
- I want to have a makefile entry in ./public that will automatically
- cd to directories ../liba and ../libb and recursively invoke
- make. Is there a way to automate what goes in this entry?
-
- Thanks.
-