package ninja_utils

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Helper module to build ninja rules.

type t

Represents the minimal ninja rule representation for Clerk:

rule <name>
  command = <command>
  [description = <description>]
val make : ?vars:Binding.t list -> 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.

OCaml

Innovation. Community. Security.