-# 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
OCAMLC = @OCAMLC@
OCAMLOPT = @OCAMLOPT@
+OCAMLDOC = @OCAMLDOC@
+OCAMLDOCFLAGS += -html -sort
+
# Common rules for building OCaml objects.
ifneq ($(OCAMLFIND),)
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