Make :- pattern matching and dependency checking
T.Day at ucl-cs.UUCP
T.Day at ucl-cs.UUCP
Thu Jul 20 05:06:54 AEST 1989
From: Tim Day <T.Day at uk.ac.ucl.cs>
# 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
+------------------------------------------------------------------------------+
More information about the Comp.unix.questions
mailing list