X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.in;h=803b94aefb3b927cc479fe253e39f65677a9442e;hb=5d253310fad045ece5516ae56479584b6a63da86;hp=bd1df89b79c431b68a362885b306f4a90c552f53;hpb=eaba93843b0adbe1de2e5d89b40f6dc4ffe74596;p=virt-df.git diff --git a/Makefile.in b/Makefile.in index bd1df89..803b94a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,9 +21,13 @@ VERSION = @PACKAGE_VERSION@ INSTALL = @INSTALL@ +OCAMLDOC = @OCAMLDOC@ +OCAMLDOCFLAGS += -html -sort -package bitmatch.syntax -syntax bitmatch.syntax -I lib +OCAMLDOCFILES := $(wildcard lib/*.mli) + SUBDIRS = lib virt-df diskzip -all opt depend install doc: +all opt depend install: for d in $(SUBDIRS); do \ $(MAKE) -C $$d $@; \ if [ $$? -ne 0 ]; then exit 1; fi; \ @@ -66,5 +70,15 @@ ChangeLog: hg log --style changelog > $@.new mv $@.new $@ -.PHONY: all opt depend install clean distclean configure dist check-manifest \ - release release_stage_2 release_stage_3 force \ No newline at end of file +# Developer documentation (in html/ subdirectory). + +ifneq ($(OCAMLDOC),) +ifneq ($(OCAMLDOCFILES),) +doc: + rm -rf html + mkdir html + -ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d html $(OCAMLDOCFILES) +endif +endif + +.PHONY: all opt depend install clean distclean dist check-manifest doc force