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