Re: Possible to get prerequisite path with secondary expansion when VPATH is employed?

Glen Huang <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <[email protected]>
> Or perhaps a series of pattern rules, one for each directory:
> 
>   build/%: foo/%.tpl foo/%.data\
>            ...
> 
>   build/%: bar/%.tpl bar/%.data
>             ...
> 
>   build/%: baz/%.tpl baz/%.data
>            …

Thank you so much Kaz, I ended up taking this advice, and it worked beautifully.

Although it’s a bit more complicated than using two pattern rules, but it’s a lot more flexible.

Regards,
Glen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.