Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mimsy!eneevax!umd5!brl-adm!adm!franco@MIKEY.BBN.COM From: franco@MIKEY.BBN.COM Newsgroups: comp.unix.wizards Subject: help with make Message-ID: <7570@brl-adm.ARPA> Date: Thu, 28-May-87 15:08:18 EDT Article-I.D.: brl-adm.7570 Posted: Thu May 28 15:08:18 1987 Date-Received: Sat, 30-May-87 11:25:17 EDT Sender: news@brl-adm.ARPA Lines: 23 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