module Makefile:sig..end
Functions to specify and generate
Makefiles.
type var
val (===) : string -> string list -> [> `Var of var ]v === def is v = def.val (=:=) : string -> string list -> [> `Var of var ]v =:= def is v := def.val (=::=) : string -> string list -> [> `Var of var ]v =::= def is v ::= def.val (=+=) : string -> string list -> [> `Var of var ]v =+= def is v += def.val (=?=) : string -> string list -> [> `Var of var ]v =+= def is v += def.module Infix:sig..end
type rule
val rule : ?ext:bool ->
?order_only_prereqs:string list ->
targets:string list ->
prereqs:string list ->
recipe:string list list -> unit -> [> `Rule of rule ]rule ext order_only_prereqs targets prerequs recipe () is a makefile
rule. ext indicates whether the rule should be extensible (double colon
rule, defaults to false).
recipe is a list of commands. Commands are list of strings.
On output the later strings are separated by one space and can be used
as a break point if the line becomes too long.
typestatement =[ `Rule of rule | `Var of var ]
typet =[ `Blank | `Comment of string | `Rule of rule | `Var of var ]
list
val to_string : t -> stringto_string m is m as a string.