[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple pattern rules

From: Payal
Subject: Re: simple pattern rules
Date: Wed, 7 Apr 2010 03:26:19 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

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,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]