X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.in;h=4fcf6942ae60aeecdd0594673e4653ffd3d379ea;hb=e7fad361d3dbf1689a22fdd1ae5f5579d6ef5fb0;hp=8ccb0ef98bd9fde5a5b733ebf926306b90cfbea6;hpb=8a8c035f78a41d68ba62bb35a6fba503481324e2;p=virt-mem.git diff --git a/Makefile.in b/Makefile.in index 8ccb0ef..4fcf694 100644 --- a/Makefile.in +++ b/Makefile.in @@ -24,9 +24,23 @@ MKDIR_P = @MKDIR_P@ datarootdir = @datarootdir@ mandir = @mandir@ +OCAMLDOCFLAGS = -html -sort -package bitstring,extlib,libvirt -I lib +OCAMLDOC = @OCAMLDOC@ +OCAMLDOCFILES = lib/virt_mem_utils.ml \ + lib/virt_mem_mmap.mli \ + lib/virt_mem_types.mli \ + lib/virt_mem_ksyms.mli \ + lib/virt_mem_kallsyms.mli \ + lib/virt_mem_utsname.mli \ + lib/virt_mem.mli + HAVE_PERLDOC = @HAVE_PERLDOC@ TOOLS = uname dmesg ps +export TOOLS + +SUBDIRS_NOT_PO = lib $(TOOLS) mem +SUBDIRS = $(SUBDIRS_NOT_PO) po ifeq ($(HAVE_PERLDOC),perldoc) MANPAGES = virt-mem.1 $(TOOLS:%=virt-%.1) @@ -36,40 +50,49 @@ endif TARGETS = $(MANPAGES) $(TEXTMANPAGES) all: $(TARGETS) - for d in lib $(TOOLS) po; do \ + for d in $(SUBDIRS); do \ $(MAKE) -C $$d $@; \ if [ $$? -ne 0 ]; then exit 1; fi; \ done install: install-man - for d in lib $(TOOLS) po; do \ + for d in $(SUBDIRS); do \ $(MAKE) -C $$d $@; \ if [ $$? -ne 0 ]; then exit 1; fi; \ done -depend doc: - for d in lib $(TOOLS); do \ +depend: + for d in $(SUBDIRS_NOT_PO); do \ $(MAKE) -C $$d $@; \ if [ $$? -ne 0 ]; then exit 1; fi; \ done clean: - for d in . lib $(TOOLS); do \ + for d in . $(SUBDIRS); do \ (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a \ *.so *.opt *~ *.dll *.exe *.annot core); \ done - for d in po; do \ - (cd $$d; rm -f *~); \ - done rm -f uname/virt-uname rm -f dmesg/virt-dmesg rm -f ps/virt-ps + rm -f mem/virt-mem distclean: clean rm -f config.h config.log config.status configure rm -rf autom4te.cache rm -f Makefile - rm -f virt-df/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.