SCCS and make
Eddie Wyatt
edw at IUS1.CS.CMU.EDU
Fri Feb 12 01:28:48 AEST 1988
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 at ius1.cs.cmu.edu
More information about the Comp.unix.questions
mailing list