help-make
[Top][All Lists]
Advanced

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

Re: Command producing several targets at once


From: Paul Smith
Subject: Re: Command producing several targets at once
Date: Wed, 26 Jul 2017 09:31:10 -0400

On Wed, 2017-07-26 at 15:21 +0200, Sébastien Hinderer wrote:
> Sorry, I meant:
> 
> parsers := foo.mly bar.mly baz.mly
>  
> $(parsers): %.ml %.mli: %.mly%.ml %.mli: %.mly
>             ocamlyacc $<

No.  That's a static pattern rule.  You can't get this multiple targets
built with a single recipe feature with a static pattern rule, only with
normal pattern rules.

Just write it as I put in my email:

  %.ml %.mli: %.mly
          ocamlyacc $<



reply via email to

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