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/>.
19 SUBDIRS = . gnulib/lib include/libvirt src tools docs gnulib/tests \
25 # have gnulib 'make coverage' output to 'cov' dir
28 ACLOCAL_AMFLAGS = -I m4
32 libvirt.spec libvirt.spec.in \
33 mingw-libvirt.spec.in \
39 Makefile.nonreentrant \
45 build-aux/augeas-gentest.pl \
46 build-aux/check-spacing.pl \
47 build-aux/gitlog-to-changelog \
48 build-aux/header-ifdef.pl \
49 build-aux/minimize-po.pl \
50 build-aux/mock-noinline.pl \
51 build-aux/prohibit-duplicate-header.pl \
52 build-aux/useless-if-before-free \
53 build-aux/vc-list-files \
56 pkgconfigdir = $(libdir)/pkgconfig
57 pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc
60 $(srcdir)/docs/news.xml \
61 $(srcdir)/docs/news-ascii.xsl \
62 $(srcdir)/docs/reformat-news.py
64 if [ -x $(XSLTPROC) ]; then \
66 $(srcdir)/docs/news-ascii.xsl \
67 $(srcdir)/docs/news.xml \
69 || { rm -f $@-tmp; exit 1; }; \
70 $(PYTHON) $(srcdir)/docs/reformat-news.py $@-tmp >$@ \
71 || { rm -f $@-tmp; exit 1; }; \
75 $(srcdir)/docs/news.xml \
76 $(srcdir)/docs/news-ascii.xsl \
77 $(srcdir)/docs/reformat-news.py
80 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
83 @(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz)
85 check-local: all tests
88 @($(MAKE) $(AM_MAKEFLAGS) -C tests check-access)
90 MAINTAINERCLEANFILES = .git-module-status
92 dist-hook: gen-AUTHORS
97 if test -d $(srcdir)/.git; then \
100 git log --pretty=format:'%aN <%aE>' | sort -u \
102 sort -u $(srcdir)/AUTHORS.in > maint.list && \
103 comm -23 all.list maint.list > contrib.list && \
104 contrib="`cat contrib.list`" && \
105 perl -p -e "s/#contributorslist#// and print '$$contrib'" \
106 < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
107 mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
108 rm -f all.list maint.list contrib.list; \
112 $(MAKE) -f Makefile.ci $@