home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9174 < prev    next >
Encoding:
Text File  |  1992-11-22  |  2.1 KB  |  58 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!bogus.sura.net!pandora.pix.com!stripes
  3. From: stripes@pix.com (Josh Osborne)
  4. Subject: Re: [386bsd] RCS + make
  5. Message-ID: <By2KuH.DB2@pix.com>
  6. Keywords: huh?
  7. Sender: news@pix.com (The News Subsystem)
  8. Nntp-Posting-Host: pandora.pix.com
  9. Organization: Pix Technologies -- The company with no adult supervision
  10. References: <By07vE.Fwt@news.cso.uiuc.edu>
  11. Date: Sat, 21 Nov 1992 14:13:28 GMT
  12. Lines: 44
  13.  
  14. In article <By07vE.Fwt@news.cso.uiuc.edu> rkb55989@dcl-nxt50 (Rafal Krzysztof Boni) writes:
  15. >    Now, my question is this: Is there any way to automate the checkout
  16. >    process on build?? I really don't want to have to check out all of 
  17. >    the kernel tree before I decide to build it....
  18.  
  19. Many versions of make support a .DEFAULT target which is called when a
  20. dependcy can not be satisfyed.  If the BSD make has it try something like:
  21.  
  22. .DEFAULT:
  23.     co -u $<
  24.  
  25. (I think that's the right $thing)
  26.  
  27. This will not remove the stuff afterward.  To do that run "rcsclean" when
  28. tjhe make is done (I am not sure ghhow to automate thatwithout editing all the
  29. makefiles...)
  30.  
  31. Some make's have a .BEFORE and .AFTER, the .BEFORE will be called even if
  32. the file exists, so you need to do something more like
  33.  
  34. .BEFORE:
  35.     yes n | co -u $<
  36.  
  37. The "yes n|" will answer no to the question "Do you want to overwrite
  38. existing file foo" if foo exists.  You could have .AFTER do a limited
  39. form of rcsclean.
  40.  
  41. If the BSD make doesn't have either then you have to get messy.  Do NOT
  42. make a RCS directory (which you SHOULD if you don't need to do this, it reduces
  43. clutter).  Then instruct RCS to use a .suffix (I am assuming .rcs) rather
  44. then the current ,v ot %v suffix.  Add some dot rules like:
  45.  
  46. .rcs.c:
  47.     co -u $<
  48. .rcs.s:
  49.     co -u $<
  50. and so on...
  51. [...]
  52. -- 
  53.            stripes@pix.com              "Security for Unix is like
  54.       Josh_Osborne@Real_World,The          Multitasking for MS-DOS"
  55.       "The dyslexic porgramer"                  - Kevin Lockwood
  56. We all agree on the necessity of compromise.  We just can't agree on
  57. when it's necessary to compromise.       - Larry Wall
  58.