Path: utzoo!attcan!uunet!cs.utexas.edu!usc!ucsd!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ghoti+ From: ghoti+@andrew.cmu.edu (Adam Stoller) Newsgroups: comp.lang.c Subject: Re: Using RCS and make Message-ID: Date: 5 Jun 90 12:40:49 GMT References: <137@evtprp0b.UUCP> Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 33 In-Reply-To: <137@evtprp0b.UUCP> I don't remember where this was originally posted - but perhaps it might help you. As I only have a printed copy of the message - I hope I haven't made any typos - re-typing it. I also have not yet had the time to try this out (so please don't attribute any flames or credit to me) --fish ________________ From: jeff@samna.uucp (Jeff Barber) Subject: RCS and makefiles (Was Re: Advantages of SCCS?) Date: 11 May 90 15:01:36 GMT [.....] How about adding this at the begining of your makefile (or add it to the default rules if you have the source to make). ---------------- Cut Here ---------------- .SUFFIXES: .c,v .h,v .h CO = co COFLAGS = .h,v.h: ; $(CO) $(COFLAGS) $< .c,v.c: ; $(CO) $(COFLAGS) $< .c,v.o ; $(CO) $(COFLAGS) $< $(CC) $(CFLAGS) -c $*.c rm -f $*.c .c,v: ; $(CO) $(COFLAGS) $< $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $*.c rm -f $*.c ---------------- Cut Here ----------------