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