summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 5791a08111053ee83befc9bc16084c500e7e01c6 (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
include $(top_srcdir)/Makefile.decl

SUBDIRS = src docs po utils examples

if HAVE_UNIT_TESTS
SUBDIRS += tests
endif

#if ENABLE_GCOV
.PHONY: coverage coverage-report
coverage:
	find $(top_srcdir) -name "*.gcda" | xargs rm -f
	$(MAKE) $(AM_MAKEFLAGS) test

coverage-report: coverage
	lcov --directory $(top_srcdir)/src --capture --output-file $(top_builddir)/lcov.info
	lcov --directory $(top_srcdir)/src --output-file $(top_builddir)/lcov.info --remove $(top_builddir)/lcov.info \
		tracker-sparql-builder.c               \
		tracker-sparql-expression.c            \
		tracker-sparql-pattern.c               \
		tracker-sparql-query.c                 \
		tracker-sparql-scanner.c               \
		tracker-turtle-reader.c                \
		tracker-turtle-writer.c                \
		libtracker-bus/tracker-array-cursor.c  \
		libtracker-bus/tracker-bus-fd-cursor.c \
		libtracker-bus/tracker-bus.c           \
		libtracker-direct/tracker-direct.c     \
		libtracker-miner/tracker-storage.c     \
		libtracker-miner/tracker-dbus.c        \
		libtracker-miner/tracker-miner-fs.c    \
		libtracker-miner/tracker-miner-object.c \
		libtracker-miner/tracker-miner-web.c   \
		libtracker-miner/tracker-network-provider.c \
		libtracker-miner/tracker-network-provider-network-manager.c \
		libtracker-sparql/tracker-builder.c    \
		libtracker-sparql/tracker-connection.c \
		libtracker-sparql/tracker-cursor.c     \
		libtracker-sparql/tracker-plugin-loader.c \
		libtracker-sparql/tracker-utils.c      \
		libtracker-sparql-backend/tracker-backend.c \
		tracker-store/tracker-backup.c \
		tracker-store/tracker-dbus.c \
		tracker-store/tracker-main.c \
		tracker-store/tracker-resources.c \
		tracker-store/tracker-statistics.c \
		tracker-store/tracker-status.c \
		tracker-store/tracker-steroids.c \
		tracker-store/tracker-store.c \
		tracker-control/* \
		libstemmer/stem_UTF_8_* \
		tracker-control/tracker-miner-files-index-client.h \
		"*.vapi"                               \
	rm -rf $(top_builddir)/coverage
	$(MKDIR_P) $(top_builddir)/coverage
	genhtml --title "@PACKAGE_STRING@" --output-directory $(top_builddir)/coverage $(top_builddir)/lcov.info
#endif

distclean-local:
	if test "x$(srcdir)" = "x."; then :; else \
		rm -f ChangeLog; \
	fi

.PHONY: ChangeLog
gen_start_date = 2009-04-10
ChangeLog:
	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
	  $(top_srcdir)/gitlog-to-changelog --since=$(gen_start_date) > $@.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

functional-test:
	cd tests/functional-tests/ && $(MAKE) $(AM_MAKEFLAGS) $@

EXTRA_DIST +=                                          \
	ChangeLog.pre-0-6-93                           \
	COPYING.GPL                                    \
	COPYING.LGPL                                   \
	gitlog-to-changelog                            \
	intltool-extract.in                            \
	intltool-merge.in                              \
	intltool-update.in			       \
	tracker.doap \
	tap-driver.sh \
	tap-test

DISTCLEANFILES +=                                      \
	intltool-extract                               \
	intltool-merge                                 \
	intltool-update

DISTCHECK_CONFIGURE_FLAGS =                            \
	--with-session-bus-services-dir="\$(datadir)"/dbus-1/services \
	--disable-nautilus-extension                   \
	--enable-unit-tests                            \
	--enable-functional-tests                      \
	--enable-gtk-doc                               \
	--enable-introspection                         \
	--disable-miner-rss                            \
	--disable-miner-evolution                      \
	--disable-miner-thunderbird                    \
	--disable-miner-firefox                        \
	--enable-poppler                               \
	--enable-exempi                                \
	--enable-libiptcdata                           \
	--enable-libjpeg                               \
	--enable-libtiff                               \
	--enable-libvorbis                             \
	--enable-libflac                               \
	--enable-libgsf                                \
	--enable-playlist                              \
	--enable-tracker-preferences                   \
	--with-enca

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}