home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.19 / text0117.txt < prev    next >
Encoding:
Internet Message Format  |  1990-05-17  |  1.3 KB

  1. From: jeff@samna.uucp (Jeff Barber)
  2.  
  3. In article <679@longway.TIC.COM> std-unix@uunet.uu.net writes:
  4. >I too prefer RCS.  However, I am forced to use SCCS because make does not
  5. >know about RCS, but it does know about SCCS.  I generally work with Suns
  6. >running Sun OS 4.0.  I once read a paper on RCS which stated that make was
  7. >going to be modified to work with RCS.  Does anyone know about this?
  8.  
  9. How about adding this at the beginning of your makefile
  10. (or add it to the default rules if you have the source to make):
  11.  
  12. ---------------------Cut Here---------------------------
  13. .SUFFIXES:    .c,v .h,v .h
  14.  
  15. CO =        co
  16. COFLAGS =    
  17.  
  18. .h,v.h:    ;    $(CO) $(COFLAGS) $<
  19.  
  20. .c,v.c:    ;    $(CO) $(COFLAGS) $<
  21.  
  22. .c,v.o:    ;    $(CO) $(COFLAGS) $<
  23.         $(CC) $(CFLAGS) -c $*.c
  24.         rm -f $*.c
  25.  
  26. .c,v:    ;    $(CO) $(COFLAGS) $<
  27.         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $*.c
  28.         rm -f $*.c
  29. ---------------------Cut Here---------------------------
  30.  
  31. One of the nice things about RCS is that since it adds
  32. a *suffix* instead of a prefix, make doesn't need a bunch of
  33. special code to handle it.  I suppose it would be nice to have
  34. some kind of built-in handling of RCS subdirectories but
  35. this isn't included for SCCS either.
  36.  
  37. Jeff Barber
  38. gatech!galbp!samna!jeff
  39. -- 
  40. "Games are only fun when you win, bonehead!"
  41.  
  42. Volume-Number: Volume 19, Number 120
  43.  
  44.