[Top][All Lists]

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

Re: help patter mathcing

From: Maxim Yegorushkin
Subject: Re: help patter mathcing
Date: Tue, 29 Aug 2006 22:24:33 +0100
User-agent: Thunderbird (X11/20060808)

Zunbeltz Izaola wrote:

I have the following files

foo-1.pdf foo-2.pdf whose prerequisite is  and
baz-1.pdf whose prerequisite is

They are generated with the command


I what to wirte a pattern rule similar to

%.pdf : something
   mptopdf $<

where someting tramsform names like foo-[0-9]*.pdf to

Does this not do what you need? (you can specify dependencies without having to write commands)

$ cat Makefile
foo-1.pdf foo-2.pdf :
baz-1.pdf :

%.pdf :
        @echo "$@ <--- mptopdf $<"
$ touch {foo,baz}.mp
$ make {foo-{1,2},baz-1}.pdf
foo-1.pdf <--- mptopdf
foo-2.pdf <--- mptopdf
baz-1.pdf <--- mptopdf

reply via email to

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