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

M
Martin Kletzander 已提交
3
## Copyright (C) 2005-2013 Red Hat, Inc.
E
Eric Blake 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
## License as published by the Free Software Foundation; either
## version 2.1 of the License, or (at your option) any later version.
##
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## Lesser General Public License for more details.
##
## You should have received a copy of the GNU Lesser General Public
## License along with this library.  If not, see
## <http://www.gnu.org/licenses/>.
18

19
SUBDIRS = . gnulib/lib include/libvirt src tools docs gnulib/tests \
20
  tests po examples
21

22
XZ_OPT ?= -v -T0
23 24
export XZ_OPT

25 26 27
# have gnulib 'make coverage' output to 'cov' dir
COVERAGE_OUT = "cov"

28
ACLOCAL_AMFLAGS = -I m4
29

30
EXTRA_DIST = \
31
  config-post.h \
32
  libvirt.spec libvirt.spec.in \
33
  mingw-libvirt.spec.in \
34
  libvirt.pc.in \
35 36
  libvirt-qemu.pc.in \
  libvirt-lxc.pc.in \
M
Martin Kletzander 已提交
37
  libvirt-admin.pc.in \
38
  Makefile.ci \
39
  Makefile.nonreentrant \
40
  autogen.sh \
41
  cfg.mk \
42
  run.in \
43
  README.md \
44 45 46 47 48 49 50 51 52 53 54
  AUTHORS.in \
  build-aux/augeas-gentest.pl \
  build-aux/check-spacing.pl \
  build-aux/gitlog-to-changelog \
  build-aux/header-ifdef.pl \
  build-aux/minimize-po.pl \
  build-aux/mock-noinline.pl \
  build-aux/prohibit-duplicate-header.pl \
  build-aux/useless-if-before-free \
  build-aux/vc-list-files \
  $(NULL)
55

D
Daniel Veillard 已提交
56
pkgconfigdir = $(libdir)/pkgconfig
57
pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc
D
Daniel Veillard 已提交
58

59 60
NEWS: \
	  $(srcdir)/docs/news.xml \
61 62 63 64 65 66 67 68 69
	  $(srcdir)/docs/news-ascii.xsl \
	  $(srcdir)/docs/reformat-news.py
	$(AM_V_GEN) \
	if [ -x $(XSLTPROC) ]; then \
	  $(XSLTPROC) --nonet \
	    $(srcdir)/docs/news-ascii.xsl \
	    $(srcdir)/docs/news.xml \
	  >$@-tmp \
	    || { rm -f $@-tmp; exit 1; }; \
70
	  $(PYTHON) $(srcdir)/docs/reformat-news.py $@-tmp >$@ \
71 72 73
	    || { rm -f $@-tmp; exit 1; }; \
	  rm -f $@-tmp; \
	fi
74 75
EXTRA_DIST += \
	$(srcdir)/docs/news.xml \
76 77
	$(srcdir)/docs/news-ascii.xsl \
	$(srcdir)/docs/reformat-news.py
78

79
rpm: clean
80
	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
81

J
Jiri Denemark 已提交
82 83 84
srpm: clean
	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz)

85 86
check-local: all tests

87
check-access: all
88 89
	@($(MAKE) $(AM_MAKEFLAGS) -C tests check-access)

90 91
MAINTAINERCLEANFILES = .git-module-status

92
dist-hook: gen-AUTHORS
C
Cole Robinson 已提交
93 94 95

.PHONY: gen-AUTHORS
gen-AUTHORS:
96 97 98 99 100 101 102 103 104 105 106 107 108
	$(AM_V_GEN)\
	if test -d $(srcdir)/.git; then \
	  ( \
	    cd $(srcdir) && \
	    git log --pretty=format:'%aN <%aE>' | sort -u \
	  ) > all.list && \
	  sort -u $(srcdir)/AUTHORS.in > maint.list && \
	  comm -23 all.list maint.list > contrib.list && \
	  contrib="`cat contrib.list`" && \
	  perl -p -e "s/#contributorslist#// and print '$$contrib'" \
	    < $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
	  mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
	  rm -f all.list maint.list contrib.list; \
C
Cole Robinson 已提交
109
	fi
110

111 112
ci-%:
	$(MAKE) -f Makefile.ci $@