home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9391 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.2 KB

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