Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!mcvax!ukc!strath-cs!nott-cs!ucl-cs!T.Day From: T.Day@ucl-cs.UUCP Newsgroups: comp.unix.questions Subject: Make :- pattern matching and dependency checking Message-ID: <344@ucl-cs.UUCP> Date: 19 Jul 89 19:06:54 GMT Sender: T.Day@ucl-cs.UUCP Lines: 32 From: Tim Day # Consider a ``make setup'' and then a ``make demo'' using this makefile... setup: touch sea.h touch big.fish.c rm -f *.o %.fish.o: sea.h %.fish.c demo: $(MAKE) big.fish.o touch sea.h $(MAKE) big.fish.o # I'd expect updating ``sea.h'' to force a remake of big.fish.o. # In fact it only makes big.fish.o once, then says ``big.fish.o is up to date''. # Obviously pattern matching rules aren't all I thought they were. # Can anyone enlighten me as to how to achieve this sort of effect, without # resorting to something like : # big.fish.o small.fish.o fat.fish.o blow.fish.o: sea.h # ? # Thanks +------------------------------------------------------------------------------+ Tim Day | Meet every second in life as challenge; Department of Photogrammetry | Respond fully to whatever happens UCL, Gower St., London WC1E 6BT | without anxiety, or complaint, or clinging +------------------------------------------------------------------------------+