X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Make.rules.in;h=484d562198e1411378587595bb06945192c9765d;hb=2bb5edc3044cad96ebf732706d5f608ba25e7768;hp=38dc3890f12e930163f7853dfed4b393c269bf59;hpb=11e0989400d8eb8be4c013ba478d8f0b6937fb4d;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