How do you get make to check out things from RCS?
JIM BURNS
gt0178a at prism.gatech.EDU
Sun Sep 30 09:17:49 AEST 1990
in article <7310 at darkstar.ucsc.edu>, haynes at ucscc.UCSC.EDU (99700000) says:
> I'm just starting to play with RCS. How do I fix a Makefile, or hack
> the make program, to get it to check out things it needs automatically
> from the RCS directory?
'ci -l' will leave your source file intact and keep 'make' happy. Assuming
you want to save disk space tho', do a 'ci filename', then a 'touch
filename' so that make will see a datestamp to calculate dependencies
from. Then something like:
.c.o:
-rm -f $<
co $<
$(CC) -c $< # add options to flavor
rm & touch $< # or just echo ""> $< - just uses 1 char.
to create your .o's, and then:
target: dependencies
optional rm's
cc -o $@ dependencies $(OPTIONS)
optional chmod's
(rm & touch) or echo> your dependencies # NOT a good idea unless
# you expect to re-compile
# everything everytime
# (of course you could
# 'ar r' them)
optional mv your target to destination dir and 'ln -s' to it
--
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu
More information about the Comp.unix.questions
mailing list