package ninja_utils

  1. Overview
  2. Docs

Module Ninja_utils.RuleSource

Helper module to build ninja rules.

Sourcetype t

Represents the minimal ninja rule representation for Clerk:

  rule <name>
    command = <command>
    [description = <description>]
Sourceval make : ?vars:Binding.any list -> ?description:Expr.t -> string -> command:Expr.t -> t

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

Sourceval format : Format.formatter -> t -> unit

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