package solvuu-build

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

Functions related to Ocamlbuild's rules.

val name : deps:string list -> prods:string list -> string

Generate a name from given deps and prods. This saves the trouble of having to think of a name manually, and makes rule names systematic.

val rule : ?name:string -> ?deps:string list -> ?prods:string list -> ?stamp:string -> ?insert:[ `top | `before of string | `after of string | `bottom ] -> ?doc:string -> Ocamlbuild_plugin.action -> unit

Like Ocamlbuild's rule function, except:

  • name: By default it is computed by the name function above.
  • dep,prod: Not provided as you can always use deps, prods.
  • deps, prods: All items are passed through Filename.normalize.