1 # $Id: Makefile.in,v 1.7 2007/08/23 09:36:04 rjones Exp $
3 PACKAGE = @PACKAGE_NAME@
4 VERSION = @PACKAGE_VERSION@
8 pkg_lablgtk2 = @pkg_lablgtk2@
9 pkg_curses = @pkg_curses@
10 pkg_xml_light = @pkg_xml_light@
12 OCAMLDOCFLAGS := -html -sort
14 SUBDIRS := libvirt examples mlvirsh
16 ifeq ($(pkg_lablgtk2),yes)
17 SUBDIRS += mlvirtmanager
20 ifeq ($(pkg_curses),yes)
24 #ifeq ($(pkg_xml_light),yes)
28 all opt depend install:
29 for d in $(SUBDIRS); do \
31 if [ $$? -ne 0 ]; then exit 1; fi; \
35 for d in . $(SUBDIRS); do \
36 (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ core); \
38 rm -f examples/list_domains
40 rm -f mlvirtmanager/mlvirtmanager
41 rm -f virt-top/virt-top
44 rm -f config.h config.log config.status configure META
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
61 @for d in `find -type d -name CVS | grep -v '^\./debian/'`; \
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; \
72 # Developer documentation (in html/ subdirectory).
78 ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d ../html \
79 libvirt.{ml,mli} libvirt_version.{ml,mli}