[comp.unix.questions] SCCS and make

edw@IUS1.CS.CMU.EDU (Eddie Wyatt) (02/11/88)

   Hello people,
	I've just started using SCCS in conjunction with a software
system I've been maintaining. I have a question about setting up a
particular dependency in my make file.  It has to do will C code
that is generated by another program (yacc).  To put it bluntly,
is there a nicer way to do this?

y.tab.o : SCCS/s.y.tab.c SCCS/s.lmbsymboltable.c \
          SCCS/s.lmbparserfunc.c SCCS/s.lex.c
        sccs get lex.c
        sccs get lmbsymboltable.c
        sccs get lmbparserfunc.c
        sccs get y.tab.c
        $(CC) $(CFLAGS) -c y.tab.c 
 
SCCS/s.y.tab.c : SCCS/s.lmbparser.yac
        sccs edit y.tab.c
        sccs get lmbparser.yac
        yacc lmbparser.yac
        sccs delta y.tab.c

Note that y.tab.c includes three C files : lmbsymboltable.c lmbparserfunc.c
and lex.c.  Also note that at the end of making the system, all .c file are
deleted to ensure only one copy of the .c file exists in the
system and the .o files are save to prevent recompiling
the whole system on very compilation.

					Thanks in advance,
-- 

Eddie Wyatt 				e-mail: edw@ius1.cs.cmu.edu