home *** CD-ROM | disk | FTP | other *** search
- From: jeff@samna.uucp (Jeff Barber)
-
- In article <679@longway.TIC.COM> std-unix@uunet.uu.net writes:
- >I too prefer RCS. However, I am forced to use SCCS because make does not
- >know about RCS, but it does know about SCCS. I generally work with Suns
- >running Sun OS 4.0. I once read a paper on RCS which stated that make was
- >going to be modified to work with RCS. Does anyone know about this?
-
- How about adding this at the beginning of your makefile
- (or add it to the default rules if you have the source to make):
-
- ---------------------Cut Here---------------------------
- .SUFFIXES: .c,v .h,v .h
-
- CO = co
- COFLAGS =
-
- .h,v.h: ; $(CO) $(COFLAGS) $<
-
- .c,v.c: ; $(CO) $(COFLAGS) $<
-
- .c,v.o: ; $(CO) $(COFLAGS) $<
- $(CC) $(CFLAGS) -c $*.c
- rm -f $*.c
-
- .c,v: ; $(CO) $(COFLAGS) $<
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $*.c
- rm -f $*.c
- ---------------------Cut Here---------------------------
-
- One of the nice things about RCS is that since it adds
- a *suffix* instead of a prefix, make doesn't need a bunch of
- special code to handle it. I suppose it would be nice to have
- some kind of built-in handling of RCS subdirectories but
- this isn't included for SCCS either.
-
- Jeff Barber
- gatech!galbp!samna!jeff
- --
- "Games are only fun when you win, bonehead!"
-
- Volume-Number: Volume 19, Number 120
-
-