[comp.unix.wizards] sccs in makefiles

jdhicks@infmx.UUCP (JD Hicks Chicago CN) (06/07/90)

I have a question regarding the use of sccs and makefiles.

The built in rules ( .ie .c~.o ) work fine but the s file has to be
in the same directory as the makefile. 

Is there any way to modify the rule so that make would check in a sccs 
directory residing below the makefile's directory for dependencay information.
See example below.


                   --
Source Directory  -|a.out
                   |makefile
                   |                   --
                   |objs              -|.o file 1
                   |                   |     .
                   |                   |     .
                   |                   |     .
                   |                   |.o file n
                   |                   --
                   |.c file 1
                   |     .
                   |     .
                   |     .
                   |.c file n
                   |                   --
                   |sccs              -|s..c file 1
                   |                   |     .
                   |                   |     .
                   |                   |     .
                   |                   |s..c file n
                   |                   --
                   --


The proposed rule would look something like this:

	sccs/.c~objs/.o:

only we can't get this to work.

Help us wizards please, you are our only hope!

Thanks

J.D.

-----------------------------------------------------------------------

J.D. Hicks
Informix Software, Inc.
Chicago, IL 60018