X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Make.rules.in;h=484d562198e1411378587595bb06945192c9765d;hb=10ae94c252bfc3e744407115274fd3d92957d026;hp=38dc3890f12e930163f7853dfed4b393c269bf59;hpb=4c4888cd768d602a99e78ec3c24cab3cbd0f0da7;p=virt-df.git diff --git a/Make.rules.in b/Make.rules.in index 38dc389..484d562 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -23,6 +23,9 @@ OCAMLDEP = @OCAMLDEP@ OCAMLC = @OCAMLC@ OCAMLOPT = @OCAMLOPT@ +OCAMLDOC = @OCAMLDOC@ +OCAMLDOCFLAGS += -html -sort + # Common rules for building OCaml objects. ifneq ($(OCAMLFIND),) @@ -64,6 +67,17 @@ ifeq ($(wildcard .depend),.depend) include .depend endif +# Developer documentation (in html/ subdirectory). + +ifneq ($(OCAMLDOC),) +ifneq ($(OCAMLDOCFILES),) +doc: + rm -rf html + mkdir html + -$(OCAMLDOC) $(OCAMLDOCFLAGS) -d html $(OCAMLDOCFILES) +endif +endif + .PHONY: depend dist check-manifest dpkg doc .SUFFIXES: .cmo .cmi .cmx .ml .mli .mll .mly