+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = \
folks \
+ backends \
+ tools \
+ po \
$(NULL)
-ACLOCAL_AMFLAGS = -I m4
+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-gtk-doc \
- --disable-scrollkeeper \
- --disable-schemas-install
-
-folksdocdir = ${prefix}/doc/folks
-folksdoc_DATA = \
- ChangeLog \
- README \
- COPYING \
- AUTHORS \
- INSTALL \
- NEWS\
+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 = \
- $(folksdoc_DATA) \
autogen.sh \
+ check.mk \
+ lcov.mk \
+ valgrind.mk \
$(NULL)
-DISTCLEANFILES = \
- ChangeLog \
+MAINTAINERCLEANFILES = \
+ ABOUT-NLS \
+ $(top_builddir)/lcov.info \
+ $(srcdir)/INSTALL \
+ $(srcdir)/aclocal.m4 \
+ $(srcdir)/compile \
+ $(srcdir)/config.guess \
+ $(srcdir)/config.h.in \
+ $(srcdir)/config.rpath \
+ $(srcdir)/config.sub \
+ $(srcdir)/depcomp \
+ $(srcdir)/install-sh \
+ $(srcdir)/ltmain.sh \
+ $(srcdir)/missing \
+ $(srcdir)/mkinstalldirs \
+ $(srcdir)/ChangeLog \
+ `find "$(srcdir)" -type f -name Makefile.in -print` \
+ `find "m4" -type f -name "*.m4" ! -name "as-compiler-flag.m4" ! -name "introspection.m4" ! -name "vala.m4" -print` \
+ po/Makevars.template \
+ po/Rules-quot \
+ po/boldquot.sed \
+ po/en@boldquot.header \
+ po/en@quot.header \
+ po/insert-header.sin \
+ po/missing \
+ po/quot.sed \
+ po/remove-potcdate.sin \
$(NULL)
-# Workaround broken scrollkeeper that doesn't remove its files on
-# uninstall.
-distuninstallcheck_listfiles = find . -type f -print | grep -v '^\./var/scrollkeeper'
+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$(srdcir)" = "x."; then :; else \
+ if test "x$(srcdir)" = "x."; then :; else \
rm -f ChangeLog; \
fi
+distcleancheck_listfiles = \
+ find . -type f -exec sh -c 'test -f $(srcdir)/$$1 || echo $$1' \
+ sh '{}' ';'
+
+maintainer-upload-release:
+ $(MAKE) -C docs maintainer-upload-release
+
ChangeLog:
@echo Creating $@
@if test -d "$(srcdir)/.git"; then \
.PHONY: ChangeLog
+# Code coverage support
+include lcov.mk
+
+-include $(top_srcdir)/git.mk