dave@rocksvax.UUCP (05/14/85)
I usally make a new rule like: .c.c: co $< at the beginning of the makefile and it will check out the sources when it finds that the .c file is not there. Dave arpa: Sewhuk.HENR@Xerox.ARPA uucp: {allegra,rochester,amd,sunybcs}!rocksvax!dave
guy@sun.uucp (Guy Harris) (05/27/85)
> I usally make a new rule like: > .c.c: > co $< > at the beginning of the makefile and it will check out the sources when > it finds that the .c file is not there. Yes, but if you want to make "foo.o" and there is no explicit rule saying "foo.o" depends on "foo.c", "make" will look for "foo.*" and, if it doesn't find "foo.c" (not "foo.c,v" or "RCS/foo.c,v"), it'll say it doesn't know how to make "foo.o". The "augmented Make" solution (done by Ed Bradford at AT&T BL Columbus and put into System III and later USDL UNIXes) has a rule that says how to make "foo.o" from "s.foo.c". Unfortunately, this means that if you change the ".c.o" rule you also have to change the ".c~.o" rule to match it; otherwise, if you make "foo.o" from "s.foo.c" it'll do the compilation differently than it will if you make "foo.o" from "foo.c". There is also code in the augmented Make which will "get" things automatically, without using Make rules; this is only used to get the Makefile from an SCCS version. When I put RCS support into Make at CCI, I ended up using that code for all checkouts and having Make know that if it can make "foo.o" from "foo.c", it can also make it from "foo.c,v" or "RCS/foo.c,v" if it checks "foo.c" out first. That way, any changes to the ".c.o" rule will also take effect if it has to check the ".c" file out first. Guy Harris
notes@ucf-cs.UUCP (06/07/85)
Two years ago, Kent Fuka of Parsec posted some mods for 4.1bsd make that caused it to search subdirectories for RCS files and check them out if necessary. I wonder if he or someone else has make the same changes to 4.2bsd make. Please respond to the net, as I'm sure others are interested. Ben Goldfarb University of Central Florida uucp: {decvax,akgua,duke}!ucf-cs!goldfarb ARPA: goldfarb.ucf-cs@csnet.relay.CSNET csnet: goldfarb@ucf.CSNET
john@genrad.UUCP (John P. Nelson) (06/12/85)
article <2045@ucf-cs.UUCP>: >Two years ago, Kent Fuka of Parsec posted some mods for 4.1bsd >make that caused it to search subdirectories for RCS files and >check them out if necessary. I wonder if he or someone else has >make the same changes to 4.2bsd make. > >Please respond to the net, as I'm sure others are interested. > I intalled those changes to the 4.2 Make on "genrad". I don't have my notes handy, but Make hasn't really changed from 4.1 to 4.2. There was only one spot where the diff didn't really reflect the source code - but it wasn't hard to figure it out in context.