Basic version, just prints the domains and disk/file mappings.
[virt-top.git] / Makefile.in
1 # $Id: Makefile.in,v 1.7 2007/08/23 09:36:04 rjones Exp $
2
3 PACKAGE         = @PACKAGE_NAME@
4 VERSION         = @PACKAGE_VERSION@
5
6 INSTALL         = @INSTALL@
7
8 pkg_lablgtk2    = @pkg_lablgtk2@
9 pkg_curses      = @pkg_curses@
10 pkg_xml_light   = @pkg_xml_light@
11
12 OCAMLDOCFLAGS   := -html -sort
13
14 SUBDIRS         := libvirt examples mlvirsh
15
16 ifeq ($(pkg_lablgtk2),yes)
17 SUBDIRS         += mlvirtmanager
18 endif
19
20 ifeq ($(pkg_curses),yes)
21 SUBDIRS         += virt-top
22 endif
23
24 ifeq ($(pkg_xml_light),yes)
25 SUBDIRS         += virt-df
26 endif
27
28 all opt depend install:
29         for d in $(SUBDIRS); do \
30           $(MAKE) -C $$d $@; \
31           if [ $$? -ne 0 ]; then exit 1; fi; \
32         done
33
34 clean:
35         for d in . $(SUBDIRS); do \
36           (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ core); \
37         done
38         rm -f examples/list_domains
39         rm -f mlvirsh/mlvirsh
40         rm -f mlvirtmanager/mlvirtmanager
41         rm -f virt-top/virt-top
42
43 distclean:
44         rm -f config.h config.log config.status configure META
45         rm -rf autom4te.cache
46         rm -f Makefile
47
48 # Distribution.
49
50 dist:
51         $(MAKE) check-manifest
52         rm -rf $(PACKAGE)-$(VERSION)
53         mkdir $(PACKAGE)-$(VERSION)
54         tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
55         $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
56         tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
57         rm -rf $(PACKAGE)-$(VERSION)
58         ls -l $(PACKAGE)-$(VERSION).tar.gz
59
60 check-manifest:
61         @for d in `find -type d -name CVS | grep -v '^\./debian/'`; \
62         do \
63         b=`dirname $$d`/; \
64         awk -F/ '$$1 != "D" {print $$2}' $$d/Entries | \
65         sed -e "s|^|$$b|" -e "s|^\./||"; \
66         done | sort > .check-manifest; \
67         sort MANIFEST > .orig-manifest; \
68         diff -u .orig-manifest .check-manifest; rv=$$?; \
69         rm -f .orig-manifest .check-manifest; \
70         exit $$rv
71
72 # Developer documentation (in html/ subdirectory).
73
74 doc:
75         rm -rf html
76         mkdir html
77         -cd libvirt; \
78         ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d ../html \
79           libvirt.{ml,mli} libvirt_version.{ml,mli}