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.
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make