1 ## Process this file with automake to produce Makefile.in
6 SUBDIRS = gnulib/lib include src daemon tools proxy docs gnulib/tests \
7 python tests po examples/domain-events/events-c examples/hellolibvirt \
8 examples/dominfo examples/domsuspend examples/python examples/apparmor \
9 examples/xml/nwfilter examples/openauth examples/systemtap
11 ACLOCAL_AMFLAGS = -I m4 -I gnulib/m4
14 $(patsubst $(srcdir)/%,%,$(wildcard $(addprefix $(srcdir)/examples/xml/, \
15 test/*.xml storage/*.xml)))
19 libvirt.spec libvirt.spec.in \
20 mingw32-libvirt.spec.in \
21 libvirt.pc libvirt.pc.in \
23 .x-sc_avoid_ctype_macros \
24 .x-sc_avoid_if_before_free \
26 .x-sc_m4_quote_check \
27 .x-sc_prohibit_asprintf \
28 .x-sc_prohibit_empty_lines_at_EOF \
29 .x-sc_prohibit_gethostby \
30 .x-sc_prohibit_gethostname \
31 .x-sc_prohibit_gettext_noop \
32 .x-sc_prohibit_have_config_h \
33 .x-sc_prohibit_HAVE_MBRTOWC \
34 .x-sc_prohibit_nonreentrant \
35 .x-sc_prohibit_strcmp \
36 .x-sc_prohibit_strcmp_and_strncmp \
37 .x-sc_prohibit_strncpy \
38 .x-sc_prohibit_test_minus_ao \
39 .x-sc_prohibit_VIR_ERR_NO_MEMORY \
40 .x-sc_require_config_h \
41 .x-sc_require_config_h_first \
42 .x-sc_trailing_blank \
43 Makefile.nonreentrant \
45 examples/domain-events/events-python \
48 pkgconfigdir = $(libdir)/pkgconfig
49 pkgconfig_DATA = libvirt.pc
51 NEWS: $(top_srcdir)/docs/news.xsl $(top_srcdir)/docs/news.html.in
52 -@(if [ -x $(XSLTPROC) ] ; then \
53 $(XSLTPROC) --nonet $(top_srcdir)/docs/news.xsl \
54 $(top_srcdir)/docs/news.html.in \
55 | perl -0777 -pe 's/\n\n+$$/\n/' \
56 | perl -pe 's/[ \t]+$$//' \
57 > $@-t && mv $@-t $@ ; fi );
61 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
63 check-local: all tests
66 @(cd docs/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
67 @(if [ "$(pythondir)" != "" ] ; then cd python ; \
68 $(MAKE) MAKEFLAGS+=--silent tests ; fi)
71 mkdir $(top_builddir)/coverage
72 $(LCOV) -c -o $(top_builddir)/coverage/libvirt.info.tmp \
73 -d $(top_builddir)/src -d $(top_builddir)/daemon \
74 -d $(top_builddir)/tests
75 $(LCOV) -r $(top_builddir)/coverage/libvirt.info.tmp \
76 -o $(top_builddir)/coverage/libvirt.info
77 rm $(top_builddir)/coverage/libvirt.info.tmp
78 $(GENHTML) --show-details -t "libvirt" -o $(top_builddir)/coverage \
79 --legend $(top_builddir)/coverage/libvirt.info
82 rm -rf $(top_builddir)/coverage
84 MAINTAINERCLEANFILES = .git-module-status
89 dist-hook: gen-ChangeLog
91 # Generate the ChangeLog file (with all entries since the switch to git)
92 # and insert it into the directory we're about to use to create a tarball.
93 gen_start_date = 2009-07-04
96 if test -d .git; then \
97 $(top_srcdir)/build-aux/gitlog-to-changelog \
98 --since=$(gen_start_date) > $(distdir)/cl-t; \
99 rm -f $(distdir)/ChangeLog; \
100 mv $(distdir)/cl-t $(distdir)/ChangeLog; \