Updated MANIFEST.
[virt-df.git] / Makefile.in
index 24bb596..127a260 100644 (file)
@@ -20,7 +20,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 +33,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 core); \
        done
        rm -f virt-df/virt-df
 
@@ -40,6 +44,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 \
+         diskimage.mli diskimage.ml
+endif
+
 # Distribution.
 
 dist: