Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!unisoft!hoptoad!hsfmsh!mhyman From: mhyman@hsfmsh.UUCP (Marco S. Hyman) Newsgroups: comp.sources.d Subject: Re: rcs for SysV Message-ID: <1548@hsfmsh.UUCP> Date: 13 Oct 89 01:48:09 GMT References: <78@vidiot.UUCP> <1367@celit.fps.com> <6218@pbhyf.PacBell.COM> Reply-To: mhyman@hsfmsh.UUCP (Marco S. Hyman) Distribution: na Organization: Softcom, Inc. San Francisco Lines: 35 In article <6218@pbhyf.PacBell.COM> rob@PacBell.COM (Rob Bernardo) writes: In article <1367@celit.fps.com> billd@fps.com (Bill Davidson) writes: +Does anyone know why Berkeley (or anyone in their right mind) still uses SCCS? Because make (at least the augmented version of make) understands SCCS. Try this in your next Makefile: SOURCES= HEADERS= OBJECTS= $(SOURCES:.c=.o) RCSDIR= . RCSFILES= $(SOURCES) $(HEADERS) ... CO= co -q COFLAGS= ... $(RCSFILES): $(RCSDIR)/RCS/$$@,v $(CO) $(COFLAGS) $(RCSDIR)/RCS/$@,v This works with both Sun makes (the new and old versions) as well as System V make (tested on an HP [SysV.2] and on SysV/386 3.2). Or use GNU make. The advantage (and disadvantage) of the above is that it will ALWAYS co the version from the RCS directory if it is newer than the one in the current directory. --marc -- // Marco S. Hyman home: {ames,sun}!pacbell!dumbcat!marc // UUCP: ...!hoptoad!hsfmsh!mhyman I-net: hsfmsh!mhyman@sfsun.west.sun.com