On Wed, Apr 07, 2010 at 10:23:13AM +0200, Stephan Beal wrote: > or, assuming all of your input files already exist: > > all: $(patsubst %.tcp, %.cdb, $(wildcard *.tcp))
This will do I guess. > 2. How can I avoid listing explicitly? > > a.cdb : > > b.cdb : BTW, in my case is the above equal to, a.cdb : a.tcp b.cdb : b.tcp > Your makefile must SOMEHOW get the list. Whether you specify it on the > command line or via $(patsubst) or something else is up to you. Something like this I guess, $(patsubst %.tcp, %.cdb, $(wildcard *.tcp)) : Thanks a lot. With warm regards, -Payal -- _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
