build: Add lcov make targets from telepathy-glib
[platform/upstream/folks.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = \
4         folks \
5         backends \
6         tests \
7         tools \
8         po \
9         $(NULL)
10
11 if HAVE_VALADOC
12 SUBDIRS += docs
13 endif
14
15 DISTCHECK_CONFIGURE_FLAGS = \
16         --enable-docs \
17         --disable-vala \
18         $(NULL)
19
20 EXTRA_DIST = \
21         autogen.sh \
22         check.mk \
23         lcov.mk \
24         valgrind.mk \
25         $(NULL)
26
27 MAINTAINERCLEANFILES = \
28         ABOUT-NLS \
29         $(top_builddir)/lcov.info \
30         $(srcdir)/INSTALL \
31         $(srcdir)/aclocal.m4 \
32         $(srcdir)/compile \
33         $(srcdir)/config.guess \
34         $(srcdir)/config.h.in \
35         $(srcdir)/config.rpath \
36         $(srcdir)/config.sub \
37         $(srcdir)/depcomp \
38         $(srcdir)/install-sh \
39         $(srcdir)/ltmain.sh \
40         $(srcdir)/missing \
41         $(srcdir)/mkinstalldirs \
42         $(srcdir)/ChangeLog \
43         `find "$(srcdir)" -type f -name Makefile.in -print` \
44         `find "m4" -type f -name "*.m4" ! -name "as-compiler-flag.m4" ! -name "introspection.m4" ! -name "vala.m4" -print` \
45         po/Makevars.template \
46         po/Rules-quot \
47         po/boldquot.sed \
48         po/en@boldquot.header \
49         po/en@quot.header \
50         po/insert-header.sin \
51         po/missing \
52         po/quot.sed \
53         po/remove-potcdate.sin \
54         $(NULL)
55
56 maintainer-clean-local: maintainer-clean-local-lcov
57 maintainer-clean-local-lcov:
58         rm -rf $(top_builddir)/lcov.html
59
60 .PHONY: maintainer-clean-local-lcov
61
62 GITIGNOREFILES = \
63         $(top_builddir)/lcov.html/* \
64         $(NULL)
65
66 distclean-local:
67         if test "x$(srcdir)" = "x."; then :; else \
68                 rm -f ChangeLog; \
69         fi
70
71 distcleancheck_listfiles = \
72         find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \
73                 sh '{}' ';'
74
75 maintainer-upload-release:
76         $(MAKE) -C docs maintainer-upload-release
77
78 ChangeLog:
79         @echo Creating $@
80         @if test -d "$(srcdir)/.git"; then \
81           (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
82           && mv -f $@.tmp $@ \
83           || ($(RM) $@.tmp; \
84               echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
85               (test -f $@ || echo git-log is required to generate this file >> $@)); \
86         else \
87           test -f $@ || \
88           (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
89           echo A git checkout and git-log is required to generate this file >> $@); \
90         fi
91
92 .PHONY: ChangeLog
93
94 # Code coverage support
95 include lcov.mk
96
97 -include $(top_srcdir)/git.mk