franco@MIKEY.BBN.COM (05/28/87)
baum: The following makefile should get you on your way. I have tested it and it seems to do what you are asking. Notice the dependencies for remaking prog and lib.a. any time, franco%mikey.bbn.com@relay.cs.net UUCP: thru Harvard ------- cut here -------- hdr = inc.h libs = ./libsourses/*.c src = $(hdr) $(libs) prog.c prog: $(src) lib.a @echo "remake prog here" # pretend we remade prog @touch prog lib.a: $(hdr) $(libs) @echo "remake lib.a here" # pretend we remade the library @touch lib.a