Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!emory!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (JIM BURNS) Newsgroups: comp.unix.questions Subject: Re: How do you get make to check out things from RCS? Message-ID: <14301@hydra.gatech.EDU> Date: 29 Sep 90 23:17:49 GMT References: <7310@darkstar.ucsc.edu> Distribution: na Organization: Georgia Institute of Technology Lines: 34 in article <7310@darkstar.ucsc.edu>, haynes@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@prism.gatech.edu