Add namespace and version to libfolks-tracker GIR
[platform/upstream/folks.git] / Makefile.am
index 8906204..a82d5e1 100644 (file)
@@ -3,26 +3,48 @@ ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = \
        folks \
        backends \
-       tests \
        tools \
        po \
        $(NULL)
 
+if ENABLE_TESTS
+SUBDIRS += tests
+endif
+
 if HAVE_VALADOC
 SUBDIRS += docs
 endif
 
+DIST_SUBDIRS = \
+       backends \
+       docs \
+       folks \
+       tests \
+       tools \
+       po \
+       $(NULL)
+
 DISTCHECK_CONFIGURE_FLAGS = \
        --enable-docs \
+       --enable-tests \
+       --enable-eds-backend \
+       --enable-telepathy-backend \
+       --enable-libsocialweb-backend \
+       --enable-tracker-backend \
+       --enable-zeitgeist \
        --disable-vala \
        $(NULL)
 
 EXTRA_DIST = \
        autogen.sh \
+       check.mk \
+       lcov.mk \
+       valgrind.mk \
        $(NULL)
 
 MAINTAINERCLEANFILES = \
        ABOUT-NLS \
+       $(top_builddir)/lcov.info \
        $(srcdir)/INSTALL \
        $(srcdir)/aclocal.m4 \
        $(srcdir)/compile \
@@ -49,6 +71,16 @@ MAINTAINERCLEANFILES = \
        po/remove-potcdate.sin \
        $(NULL)
 
+maintainer-clean-local: maintainer-clean-local-lcov
+maintainer-clean-local-lcov:
+       rm -rf $(top_builddir)/lcov.html
+
+.PHONY: maintainer-clean-local-lcov
+
+GITIGNOREFILES = \
+       $(top_builddir)/lcov.html/* \
+       $(NULL)
+
 distclean-local:
        if test "x$(srcdir)" = "x."; then :; else \
                rm -f ChangeLog; \
@@ -77,4 +109,7 @@ ChangeLog:
 
 .PHONY: ChangeLog
 
+# Code coverage support
+include lcov.mk
+
 -include $(top_srcdir)/git.mk