summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 4d6fa751450028f1517942597eabbcc36dc75faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = \
	folks \
	backends \
	tools \
	po \
	$(NULL)

if ENABLE_TESTS
SUBDIRS += tests
endif

if HAVE_VALADOC
SUBDIRS += docs
endif

DIST_SUBDIRS = \
	folks \
	backends \
	tools \
	tests \
	docs \
	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 \
	--disable-fatal-warnings \
	$(NULL)

EXTRA_DIST = \
	autogen.sh \
	check.mk \
	lcov.mk \
	valgrind.mk \
	$(NULL)

MAINTAINERCLEANFILES = \
	$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
	$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
	ABOUT-NLS \
	$(top_builddir)/lcov.info \
	$(srcdir)/INSTALL \
	$(srcdir)/config.h.in \
	$(srcdir)/config.rpath \
	$(srcdir)/ChangeLog \
	$(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; \
	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 \
	  (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
	  && mv -f $@.tmp $@ \
	  || ($(RM) $@.tmp; \
	      echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
	      (test -f $@ || echo git-log is required to generate this file >> $@)); \
	else \
	  test -f $@ || \
	  (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
	  echo A git checkout and git-log is required to generate this file >> $@); \
	fi

.PHONY: ChangeLog

# Code coverage support
include lcov.mk

-include $(top_srcdir)/git.mk