Module Ninja_utils.Rule

Helper module to build ninja rules.

type t = {
name : string;
command : Expr.t;
description : Expr.t option;
}

Represents the minimal ninja rule representation for Clerk:

rule <name>
  command = <command>
  [description = <description>]
val make : string -> command:Expr.t -> description:Expr.t -> t

make name ~command ~description returns the corresponding ninja Rule.t.

val format : Stdlib.Format.formatter -> t -> unit

format fmt rule outputs in fmt the string representation of the ninja rule.