[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command producing several targets at once
From: |
Sébastien Hinderer |
Subject: |
Re: Command producing several targets at once |
Date: |
Wed, 26 Jul 2017 15:18:33 +0200 |
Dear Paul,
Many thanks for your prompt and helpful response!
Paul Smith (2017/07/26 08:57 -0400):
> On Wed, 2017-07-26 at 09:24 +0200, Sébastien Hinderer wrote:
> > parser.mli parser.ml: parser.mly
> > ocaplyacc $<
> >
> > does nos say exactly this but is rather an abbreviation for
> >
> > parser.mli: parser.mly
> > ocamlyacc $<
> >
> > parser.ml: parser.mly
> > ocamlyacc $<
>
> Correct. However this:
>
> %.mli %.ml : %.mly
> ocamlyacc $<
>
> will do just what you want.
>
> Pattern rules with multiple targets tell make that a single invocation
> of the recipe will build all the targets.
Oh great! I was not aware of this.
So am I correctin assuming that something like
parsers := foo.mly bar.mly baz.mly
$(parsers): %.ml %.mli
ocamlyacc $<
would work the expected way?
Thanks again, Paul!
Sébastien.
- Command producing several targets at once, Sébastien Hinderer, 2017/07/26
- Re: Command producing several targets at once, Paul Smith, 2017/07/26
- Re: Command producing several targets at once,
Sébastien Hinderer <=
- Re: Command producing several targets at once, Sébastien Hinderer, 2017/07/26
- Re: Command producing several targets at once, Paul Smith, 2017/07/26
- Re: Command producing several targets at once, Sébastien Hinderer, 2017/07/26
- Re: Command producing several targets at once, Britton Kerin, 2017/07/26
- Re: Command producing several targets at once, Paul Smith, 2017/07/26
- Re: Command producing several targets at once, Britton Kerin, 2017/07/26
- Re: Command producing several targets at once, Paul Smith, 2017/07/26
- Re: Command producing several targets at once, Britton Kerin, 2017/07/26
- Re: Command producing several targets at once, Sébastien Hinderer, 2017/07/27
- Re: Command producing several targets at once, Stefan Monnier, 2017/07/29