Makefile.am 4.63 KB
Newer Older
1
## Process this file with automake to produce Makefile.in
2
NULL =
3

4
ACLOCAL_AMFLAGS = -I build/m4 ${ACLOCAL_FLAGS}
5

6 7 8 9
SUBDIRS = \
	. \
	po \
	docs/reference/libsecret
10 11 12

DISTCHECK_CONFIGURE_FLAGS = \
	--enable-debug=yes \
Stef Walter's avatar
Stef Walter committed
13
	--disable-coverage \
14
	--disable-strict \
Stef Walter's avatar
Stef Walter committed
15
	--disable-silent-rules \
16 17
	--enable-gtk-doc \
	--enable-vala
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

dist-hook:
	@if test -d "$(srcdir)/.git"; \
	then \
		echo Creating ChangeLog && \
		( cd "$(top_srcdir)" && \
		  echo '# Generate automatically. Do not edit.'; echo; \
		  $(top_srcdir)/missing --run git log --stat --date=short ) > ChangeLog.tmp \
		&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
		|| ( rm -f ChangeLog.tmp ; \
		     echo Failed to generate ChangeLog >&2 ); \
	else \
		echo A git clone is required to generate a ChangeLog >&2; \
	fi

Stef Walter's avatar
Stef Walter committed
33
upload-release: $(DIST_ARCHIVES)
34 35 36
	gpg --detach-sign --local-user 'stef@thewalter.net' $(DIST_ARCHIVES)
	scp $(DIST_ARCHIVES) $(DIST_ARCHIVES).sig master.gnome.org:
	ssh master.gnome.org ftpadmin install $(DIST_ARCHIVES) $(DIST_ARCHIVES).sig
Stef Walter's avatar
Stef Walter committed
37

38 39
upload-docs:
	rsync -Hvax docs/reference/libsecret/html/./ master.gnome.org:public_html/libsecret-docs/
40 41 42 43 44 45 46 47 48 49 50

if HAVE_VALAC
dist-check-valac:

else
dist-check-valac:
	@echo "*** valac must be installed and enabled in order to make dist"
	@false
endif

dist-hook: dist-check-valac
51 52 53

distcleancheck_listfiles =  \
       find . -name '*.gc[dn][oa]' -prune -o -type f -print
54

55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(builddir)/.libs GI_TYPELIB_PATH=$(builddir)
TEST_EXTENSIONS = .py .js

# Default executable tests
LOG_DRIVER = $(srcdir)/build/tap-driver
LOG_DRIVER_FLAGS = --format=tap
LOG_COMPILER = $(srcdir)/build/tap-gtester

# Python tests
PY_LOG_DRIVER = $(srcdir)/build/tap-driver
PY_LOG_DRIVER_FLAGS = --format=tap
PY_LOG_COMPILER = $(srcdir)/build/tap-unittest

# Javascript tests
JS_LOG_DRIVER = $(srcdir)/build/tap-driver
JS_LOG_DRIVER_FLAGS = --format=simple
JS_LOG_COMPILER = gjs
72

73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
VALGRIND_ARGS = --trace-children=no --quiet --error-exitcode=33 \
	--suppressions=valgrind-suppressions --gen-suppressions=all \
	--num-callers=16
VALGRIND_SUPPRESSIONS = \
	build/gcrypt.supp \
	build/glib.supp \
	build/pthread.supp \
	build/unknown.supp \
	$(NULL)

valgrind-suppressions: $(VALGRIND_SUPPRESSIONS)
	$(AM_V_GEN) cat $^ > $@

check-memory: valgrind-suppressions
	$(MAKE) LOG_FLAGS="-- libtool --mode=execute valgrind $(VALGRIND_ARGS)" \
		PY_LOG_DRIVER_FLAGS="--missing=no-python-valgrind" \
		JS_LOG_DRIVER_FLAGS="--missing=no-gjs-valgrind" \
		$(AM_MAKEFLAGS) check
recheck-memory: valgrind-suppressions
	$(MAKE) LOG_FLAGS="-- libtool --mode=execute valgrind $(VALGRIND_ARGS)" \
		PY_LOG_DRIVER_FLAGS="--missing=no-python-valgrind" \
		JS_LOG_DRIVER_FLAGS="--missing=no-gjs-valgrind" \
		$(AM_MAKEFLAGS) recheck
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 123 124 125 126 127 128 129 130

if WITH_COVERAGE
coverage:
	mkdir -p $(top_builddir)/build/coverage
	$(LCOV) --directory . --capture --output-file $(top_builddir)/build/coverage.info
	$(GENHTML) --output-directory $(top_builddir)/build/coverage $(top_builddir)/build/coverage.info
	$(LCOV) --directory . --zerocounters
	@echo "file://$(abs_top_builddir)/build/coverage/index.html"

clear-coverage:
	$(LCOV) --directory . --zerocounters

endif

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/build \
	-DSRCDIR="\"@abs_srcdir@\"" \
	-DLOCALEDIR=\""$(datadir)/locale"\" \
	-DWITH_VALGRIND \
	-DSECRET_COMPILATION \
	$(LIBGCRYPT_CFLAGS) \
	$(GLIB_CFLAGS)

bin_PROGRAMS =
BUILT_SOURCES =
check_PROGRAMS =
DISTCLEANFILES =
lib_LTLIBRARIES =
man_MANS =
nodist_noinst_DATA =
noinst_DATA =
noinst_LTLIBRARIES =
TESTS =

131
noinst_PROGRAMS =
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =

if HAVE_INTROSPECTION

include $(INTROSPECTION_MAKEFILE)

INTROSPECTION_GIRS = 
INTROSPECTION_SCANNER_ARGS = $(INTROSPECTION_FLAGS) --warn-all \
	--add-include-path=$(srcdir) --add-include-path=$(builddir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=$(builddir)

girdir = $(datadir)/gir-1.0
gir_DATA =

typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = $(gir_DATA:.gir=.typelib)

if ENABLE_VAPIGEN

include $(VAPIGEN_MAKEFILE)

VAPIGEN_VAPIS =

vapidir = $(datadir)/vala/vapi
vapi_DATA =

endif

endif

CLEANFILES = \
	$(pkgconfig_DATA) \
	$(gir_DATA) \
	$(typelibs_DATA) \
	$(BUILT_SOURCES) \
	$(vapi_DATA) \
170 171
	$(man_MANS) \
	valgrind-suppressions
172 173

EXTRA_DIST = \
174
	COPYING.TESTS \
175 176 177 178 179 180 181 182 183
	meson_options.txt \
	meson.build \
	docs/meson.build \
	docs/man/meson.build \
	docs/reference/libsecret/meson.build \
	egg/meson.build \
	libsecret/meson.build \
	po/meson.build \
	tool/meson.build \
184 185 186 187 188
	build/valgrind \
	build/tap-gtester \
	build/tap-driver \
	build/tap-unittest \
	$(VALGRIND_SUPPRESSIONS)
189 190 191 192 193 194 195 196

include egg/Makefile.am
include libsecret/Makefile.am
include tool/Makefile.am

if WITH_MANPAGES
include docs/man/Makefile.am
endif