make & RCS

Jerry Peek jerryp at cmx.npac.syr.edu
Mon Nov 7 06:18:52 AEST 1988


[This posting was pretty old, but I figured I'd answer since no one else
did.  The disadvantages of reading news once a month, sigh...]

In article <752 at paris.ics.uci.edu> nagel at paris.ics.uci.edu (Mark Nagel) writes:
> Not having a make that knows about RCS is a real pain.  As far as I
> can tell, I need to explicitly state dependencies between RCS/foo.c,v
> and foo.c for all files in my project.

When you say "that knows about RCS," do you mean your make doesn't have rules
like .c,v.c defined?  That's probably too simple an explanation.

Does your make understand .PREFIXES?  If it does, you can put the following
line in your makefile.  If make doesn't find a .c,v file in the current
directory, this tells it to check the ./RCS directory as well:

	.PREFIXES: ./RCS

You can add other directories (like /usr/project/RCS) at the end, too.

--Jerry Peek, Northeast Parallel Architectures Center, Syracuse, NY
  jerryp at cmx.npac.syr.edu
  +1 315 443-1722



More information about the Comp.unix.questions mailing list