X-Git-Url: http://git.annexia.org/?p=virt-mem.git;a=blobdiff_plain;f=Makefile.in;fp=Makefile.in;h=28e785813cf1659ef5dbba52b4f2e638a3b65f96;hp=cca638845d968cc7e4082328ee305efbd974905b;hb=8d9837165c14c181d5ce3f59fbd39afcb80ac8cc;hpb=c4e61cb8704aef23207d6186ab1e00f3d77ac5d7 diff --git a/Makefile.in b/Makefile.in index cca6388..28e7858 100644 --- a/Makefile.in +++ b/Makefile.in @@ -24,6 +24,10 @@ 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.mli + HAVE_PERLDOC = @HAVE_PERLDOC@ TOOLS = uname dmesg ps @@ -51,7 +55,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 +77,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)