relatively simple make question

Paul Chamberlain tif at doorstop.austin.ibm.com
Sat May 18 02:51:34 AEST 1991


In article <621 at elroy> davidk at 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



More information about the Comp.unix.shell mailing list