Makefile.am 1.4 KB
Newer Older
D
Daniel Veillard 已提交
1 2
## Process this file with automake to produce Makefile.in

3 4 5
LCOV = lcov
GENHTML = genhtml

J
Jim Meyering 已提交
6
SUBDIRS = gnulib/lib include src qemud proxy docs gnulib/tests \
D
Daniel Veillard 已提交
7
  python tests po examples/domain-events/events-c examples/hellolibvirt
8

9
ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
10

11 12
EXTRA_DIST = \
  libvirt.spec libvirt.spec.in \
R
Richard W.M. Jones 已提交
13
  mingw32-libvirt.spec.in \
14 15
  libvirt.pc libvirt.pc.in \
  $(man_MANS) autobuild.sh \
16
  .x-sc_avoid_if_before_free \
17
  .x-sc_require_config_h_first \
18
  .x-sc_prohibit_strcmp \
19
  .x-sc_require_config_h \
20 21
  .x-sc_prohibit_nonreentrant \
  Makefile.nonreentrant \
22
  autogen.sh
23 24

man_MANS = virsh.1
D
Daniel Veillard 已提交
25 26

pkgconfigdir = $(libdir)/pkgconfig
27
pkgconfig_DATA = libvirt.pc
D
Daniel Veillard 已提交
28

29 30
rpm: clean
	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
31 32 33 34

check-local: all tests

tests:
35
	@(cd docs/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
J
Jim Meyering 已提交
36
	@(if [ "$(pythondir)" != "" ] ; then cd python ; \
37 38
	  $(MAKE) MAKEFLAGS+=--silent tests ; fi)

39 40 41 42 43 44
cov: clean-cov
	mkdir $(top_builddir)/coverage
	$(LCOV) -c -o $(top_builddir)/coverage/libvirt.info.tmp -d $(top_srcdir)/src  -d $(top_srcdir)/qemud -d $(top_srcdir)/tests
	$(LCOV) -r $(top_builddir)/coverage/libvirt.info.tmp -o $(top_builddir)/coverage/libvirt.info *usr*
	rm $(top_builddir)/coverage/libvirt.info.tmp
	$(GENHTML) -s -t "libvirt" -o $(top_builddir)/coverage --legend $(top_builddir)/coverage/libvirt.info
45 46 47

clean-cov:
	rm -rf $(top_builddir)/coverage
J
Jim Meyering 已提交
48 49 50

# disable this check
distuninstallcheck: