X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=Make.rules.in;h=484d562198e1411378587595bb06945192c9765d;hb=7a5fc851494dacaae801ef578c2b68d6184543f4;hp=a25d4857b60a12ae6c401c9a41a40612d9737581;hpb=49ec200e1391ff462fce459f1c9159a53883badf;p=virt-df.git diff --git a/Make.rules.in b/Make.rules.in index a25d485..484d562 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -1,4 +1,5 @@ -# ocaml-libvirt +# virt-df -*- Makefile -*- +# @configure_input@ # Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones # # This library is free software; you can redistribute it and/or @@ -22,6 +23,9 @@ OCAMLDEP = @OCAMLDEP@ OCAMLC = @OCAMLC@ OCAMLOPT = @OCAMLOPT@ +OCAMLDOC = @OCAMLDOC@ +OCAMLDOCFLAGS += -html -sort + # Common rules for building OCaml objects. ifneq ($(OCAMLFIND),) @@ -63,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