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 08:57:09 -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.



reply via email to

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