Added META file.
[virt-df.git] / Makefile.in
index 24bb596..1ebe823 100644 (file)
@@ -1,5 +1,6 @@
-# ocaml-libvirt
-# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
+# virt-df
+# @configure_input@
+# Copyright (C) 2007-2008 Red Hat Inc., Richard W.M. Jones
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -20,7 +21,10 @@ VERSION              = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
 
-SUBDIRS                = virt-df
+OCAMLDOC        = @OCAMLDOC@
+OCAMLDOCFLAGS  := -html -sort
+
+SUBDIRS                = lib virt-df diskzip
 
 all opt depend install:
        for d in $(SUBDIRS); do \
@@ -30,7 +34,8 @@ all opt depend install:
 
 clean:
        for d in . $(SUBDIRS); do \
-         (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
+         (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a \
+           *.so *.opt *~ *.dll *.exe *.annot core); \
        done
        rm -f virt-df/virt-df
 
@@ -40,6 +45,18 @@ distclean: clean
        rm -f Makefile
        rm -f virt-df/Makefile
 
+# Developer documentation (in html/ subdirectory).
+
+ifneq ($(OCAMLDOC),)
+doc:
+       rm -rf html
+       mkdir html
+       -cd lib; \
+       $(OCAMLDOC) $(OCAMLDOCFLAGS) -d ../html \
+         -I +extlib -I +bitmatch \
+         int63.mli diskimage.mli diskimage.ml
+endif
+
 # Distribution.
 
 dist: