Split out the kernel symbol detection code.
[virt-mem.git] / Makefile.in
index cca6388..62e2fed 100644 (file)
@@ -24,6 +24,15 @@ MKDIR_P              = @MKDIR_P@
 datarootdir    = @datarootdir@
 mandir         = @mandir@
 
+OCAMLDOCFLAGS  = -html -sort -package bitstring,extlib -I lib
+OCAMLDOC       = @OCAMLDOC@
+OCAMLDOCFILES  = lib/virt_mem_utils.ml \
+                 lib/virt_mem_mmap.mli \
+                 lib/virt_mem_types.ml \
+                 lib/virt_mem_ksyms.mli \
+                 lib/virt_mem_kallsyms.mli \
+                 lib/virt_mem.mli
+
 HAVE_PERLDOC    = @HAVE_PERLDOC@
 
 TOOLS          = uname dmesg ps
@@ -51,7 +60,7 @@ install: install-man
          if [ $$? -ne 0 ]; then exit 1; fi; \
        done
 
-depend doc:
+depend:
        for d in $(SUBDIRS_NOT_PO); do \
          $(MAKE) -C $$d $@; \
          if [ $$? -ne 0 ]; then exit 1; fi; \
@@ -73,6 +82,17 @@ distclean: clean
        rm -f Makefile
        rm -f */Makefile
 
+# Developer documentation (in html/ subdirectory).
+
+ifneq ($(OCAMLDOC),)
+ifneq ($(OCAMLDOCFILES),)
+doc:
+       rm -rf html
+       mkdir html
+       -ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d html $(OCAMLDOCFILES)
+endif
+endif
+
 # Manual page.
 
 ifeq ($(HAVE_PERLDOC),perldoc)