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