Makefile.am 4.69 KB
Newer Older
1 2
include $(top_srcdir)/Makefile.decl

3
SUBDIRS = src docs po utils examples
4 5 6 7 8

if HAVE_UNIT_TESTS
SUBDIRS += tests
endif

9 10 11 12 13 14 15 16 17
#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 \
18 19 20 21 22 23 24 25
		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  \
26
		libtracker-bus/tracker-bus-fd-cursor.c \
27 28 29 30 31
		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    \
32
		libtracker-miner/tracker-miner-object.c \
33
		libtracker-miner/tracker-miner-web.c   \
34 35
		libtracker-miner/tracker-network-provider.c \
		libtracker-miner/tracker-network-provider-network-manager.c \
36
		libtracker-sparql/tracker-builder.c    \
37
		libtracker-sparql/tracker-connection.c \
38
		libtracker-sparql/tracker-cursor.c     \
39
		libtracker-sparql/tracker-plugin-loader.c \
40
		libtracker-sparql/tracker-utils.c      \
41
		libtracker-sparql-backend/tracker-backend.c \
42 43 44 45 46 47 48 49 50 51
		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_* \
52
		tracker-control/tracker-miner-files-index-client.h \
53
		"*.vapi"                               \
54
	rm -rf $(top_builddir)/coverage
55
	$(MKDIR_P) $(top_builddir)/coverage
56 57 58
	genhtml --title "@PACKAGE_STRING@" --output-directory $(top_builddir)/coverage $(top_builddir)/lcov.info
#endif

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

64
.PHONY: ChangeLog
65
gen_start_date = 2009-04-10
66 67 68 69 70 71 72 73 74 75 76
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 >> $@); \
77 78
	fi

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

82
EXTRA_DIST +=                                          \
Carlos Garnacho's avatar
Carlos Garnacho committed
83
	config.h.meson.in                              \
84
	ChangeLog.pre-0-6-93                           \
85 86
	COPYING.GPL                                    \
	COPYING.LGPL                                   \
87 88 89
	gitlog-to-changelog                            \
	intltool-extract.in                            \
	intltool-merge.in                              \
90
	intltool-update.in			       \
Carlos Garnacho's avatar
Carlos Garnacho committed
91
	po/meson.build \
92
	meson.build \
Carlos Garnacho's avatar
Carlos Garnacho committed
93
	meson_options.txt \
94 95 96
	tracker.doap \
	tap-driver.sh \
	tap-test
97

98
DISTCLEANFILES +=                                      \
99 100
	intltool-extract                               \
	intltool-merge                                 \
101 102
	intltool-update

103
DISTCHECK_CONFIGURE_FLAGS =                            \
104
	--with-session-bus-services-dir="\$(datadir)"/dbus-1/services \
105
	--with-bash-completion-dir="\$(datadir)"/bash-completion/ \
106 107 108 109
	--disable-nautilus-extension                   \
	--enable-unit-tests                            \
	--enable-functional-tests                      \
	--enable-gtk-doc                               \
110
	--enable-introspection                         \
111
	--disable-miner-rss                            \
112
	--disable-miner-evolution                      \
113 114
	--disable-miner-thunderbird                    \
	--disable-miner-firefox                        \
115 116 117 118 119 120 121 122 123 124
	--enable-poppler                               \
	--enable-exempi                                \
	--enable-libiptcdata                           \
	--enable-libjpeg                               \
	--enable-libtiff                               \
	--enable-libvorbis                             \
	--enable-libflac                               \
	--enable-libgsf                                \
	--enable-playlist                              \
	--enable-tracker-preferences                   \
125
	--enable-enca
126

127
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}