INSTALL = @INSTALL@
-SUBDIRS = lib virt-df
+OCAMLDOC = @OCAMLDOC@
+OCAMLDOCFLAGS := -html -sort
+
+SUBDIRS = lib virt-df diskzip
all opt depend install:
for d in $(SUBDIRS); do \
clean:
for d in . $(SUBDIRS); do \
(cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a \
- *.so *.opt *~ *.dll *.exe core); \
+ *.so *.opt *~ *.dll *.exe *.annot core); \
done
rm -f virt-df/virt-df
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: