Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!kth!sunic!front.se!zap From: zap@front.se (Svante Lindahl) Newsgroups: comp.unix.questions Subject: Re: uhhh, use Make as The Creator intended (was Re: help with make needed) Message-ID: <496@front.se> Date: 2 May 89 11:29:37 GMT References: <459@front.se> <477@front.se> <4351@omepd.UUCP> Organization: Front Capital Systems, Stockholm, Sweden Lines: 21 In article <4351@omepd.UUCP>, merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) writes: > Whoa, whoa, whoa. Why not just: > $(TARGET):: Makefile > -rm -f $@ > > $(TARGET):: fred.o barney.o wilma.o betty.o > ar r $@ $? Yes! A pair of double colon rules works nicely for this situation. Although I think the second rule should be: $(TARGET):: $(OBJECTS) ranlib $@ as suggested by Root Boy Jim in another posting, and Leo de Wit in a posting that didn't make it out, but which was mailed to me. Thank you, everybody! Svante