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: Stefan Monnier
Subject: Re: Command producing several targets at once
Date: Sat, 29 Jul 2017 15:02:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> Another option if you don't like non-static pattern rules or the
> special-case stuff involved, is to use a stamp file:

> yaccouts.stamp: parser.mly
>         ocamlyacc $<

IIUC a degenerate form of this is to decide that "parse.ml" plays the
role of the stamp file, so you do

    parser.ml: parser.mly
        ocamlyacc $<
    
    parser.mli: parser.ml
        @:


-- Stefan




reply via email to

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