Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain) Newsgroups: comp.unix.shell Subject: Re: relatively simple make question Message-ID: <7703@awdprime.UUCP> Date: 17 May 91 16:51:34 GMT References: <621@elroy> Sender: news@awdprime.UUCP Reply-To: tif@doorstop.austin.ibm.com (Paul Chamberlain) Organization: IBM AWD, Austin Lines: 17 In article <621@elroy> davidk@dsinet (David Karr) writes: >SRC = gork.csh flork.csh > >$(SRC:.csh=): $(SRC) > @echo ln $@.csh $@ I agree that using a .SUFFIX is a good way to do it, but, without redefining the problem, the easiest way to make this work is just to add this after "SRC =": all: $(SRC:.csh=) If you want to know another way to do it, get mmv and then do: mmv -l '*.csh' =1 But that has some broad assumptions. Paul Chamberlain | I do NOT speak for IBM. IBM VNET: PAULCC AT AUSTIN 512/838-9748 | ...!cs.utexas.edu!ibmchs!auschs!doorstop.austin.ibm.com!tif