TEMP disable %check
[libvirt/apevec.git] / Makefile.am
blob26c64885bd5a7a6856554f2ea1b1f3e29d8a229e
1 ## Process this file with automake to produce Makefile.in
3 LCOV = lcov
4 GENHTML = genhtml
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
13 XML_EXAMPLES = \
14   $(patsubst $(srcdir)/%,%,$(wildcard $(addprefix $(srcdir)/examples/xml/, \
15                                         test/*.xml storage/*.xml)))
17 EXTRA_DIST = \
18   ChangeLog-old \
19   libvirt.spec libvirt.spec.in \
20   mingw32-libvirt.spec.in \
21   libvirt.pc libvirt.pc.in \
22   autobuild.sh \
23   .x-sc_avoid_ctype_macros \
24   .x-sc_avoid_if_before_free \
25   .x-sc_avoid_write \
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 \
44   autogen.sh \
45   examples/domain-events/events-python \
46   $(XML_EXAMPLES)
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 );
60 rpm: clean
61         @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
63 check-local: all tests
65 tests:
66         @(cd docs/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
67         @(if [ "$(pythondir)" != "" ] ; then cd python ; \
68           $(MAKE) MAKEFLAGS+=--silent tests ; fi)
70 cov: clean-cov
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
81 clean-cov:
82         rm -rf $(top_builddir)/coverage
84 MAINTAINERCLEANFILES = .git-module-status
86 # disable this check
87 distuninstallcheck:
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
94 .PHONY: gen-ChangeLog
95 gen-ChangeLog:
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;              \
101         fi