1 ## Process this file with automake to produce Makefile.in
3 ## Copyright (C) 2005-2013 Red Hat, Inc.
5 ## This library is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU Lesser General Public
7 ## License as published by the Free Software Foundation; either
8 ## version 2.1 of the License, or (at your option) any later version.
10 ## This library is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## Lesser General Public License for more details.
15 ## You should have received a copy of the GNU Lesser General Public
16 ## License along with this library. If not, see
17 ## <http://www.gnu.org/licenses/>.
22 SUBDIRS = . gnulib/lib include/libvirt src tools docs gnulib/tests \
28 ACLOCAL_AMFLAGS = -I m4
32 libvirt.spec libvirt.spec.in \
33 mingw-libvirt.spec.in \
38 Makefile.nonreentrant \
44 build-aux/augeas-gentest.pl \
45 build-aux/check-spacing.pl \
46 build-aux/gitlog-to-changelog \
47 build-aux/header-ifdef.pl \
48 build-aux/minimize-po.pl \
49 build-aux/mock-noinline.pl \
50 build-aux/prohibit-duplicate-header.pl \
51 build-aux/useless-if-before-free \
52 build-aux/vc-list-files \
58 pkgconfigdir = $(libdir)/pkgconfig
59 pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc
62 $(srcdir)/docs/news.xml \
63 $(srcdir)/docs/news-ascii.xsl \
64 $(srcdir)/docs/reformat-news.py
66 if [ -x $(XSLTPROC) ]; then \
68 $(srcdir)/docs/news-ascii.xsl \
69 $(srcdir)/docs/news.xml \
71 || { rm -f $@-tmp; exit 1; }; \
72 $(PYTHON) $(srcdir)/docs/reformat-news.py $@-tmp >$@ \
73 || { rm -f $@-tmp; exit 1; }; \
77 $(srcdir)/docs/news.xml \
78 $(srcdir)/docs/news-ascii.xsl \
79 $(srcdir)/docs/reformat-news.py
82 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
85 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz)
87 check-local: all tests
90 @($(MAKE) $(AM_MAKEFLAGS) -C tests check-access)
93 $(MKDIR_P) $(top_builddir)/coverage
94 $(LCOV) -c -o $(top_builddir)/coverage/libvirt.info.tmp \
95 -d $(top_builddir)/src \
96 -d $(top_builddir)/tests
97 $(LCOV) -r $(top_builddir)/coverage/libvirt.info.tmp \
98 -o $(top_builddir)/coverage/libvirt.info
99 rm $(top_builddir)/coverage/libvirt.info.tmp
100 $(GENHTML) --show-details -t "libvirt" -o $(top_builddir)/coverage \
101 --legend $(top_builddir)/coverage/libvirt.info
104 rm -rf $(top_builddir)/coverage
106 MAINTAINERCLEANFILES = .git-module-status
108 dist-hook: gen-AUTHORS
113 if test -d $(srcdir)/.git; then \
116 git log --pretty=format:'%aN <%aE>' | sort -u \
118 sort -u $(srcdir)/AUTHORS.in > maint.list && \
119 comm -23 all.list maint.list > contrib.list && \
120 contrib="`cat contrib.list`" && \
121 perl -p -e "s/#contributorslist#// and print '$$contrib'" \
122 < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
123 mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
124 rm -f all.list maint.list contrib.list; \