summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am168
1 files changed, 139 insertions, 29 deletions
diff --git a/Makefile.am b/Makefile.am
index fec35da5..e81bcd32 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,20 +1,7 @@
NULL =
-if WITH_PAM
-PAM_DIR = pam
-else
-PAM_DIR =
-endif
-
SUBDIRS = \
. \
- egg \
- pkcs11 \
- schema \
- daemon \
- tool \
- testing \
- $(PAM_DIR) \
po
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
@@ -49,7 +36,7 @@ dist-hook:
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generate automatically. Do not edit.'; echo; \
- $(top_srcdir)/missing --run git log $(CHANGELOG_START).. --stat --date=short ) > ChangeLog.tmp \
+ git log $(CHANGELOG_START).. --stat --date=short ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
@@ -60,22 +47,8 @@ dist-hook:
install-pam:
@echo "WARNING: install-pam is no longer used, use the --with-pam-dir configure option instead"
-if WITH_COVERAGE
-coverage:
- mkdir -p testing/coverage
- $(LCOV) --directory docs/ --zerocounters
- $(LCOV) --directory . --capture --output-file testing/coverage.info
- $(GENHTML) --output-directory testing/coverage testing/coverage.info
- $(LCOV) --directory . --zerocounters
- @echo "file://$(abs_top_builddir)/testing/coverage/index.html"
-
-clear-coverage:
- $(LCOV) --directory . --zerocounters
-
-endif
-
if ENABLE_DOC
-SUBDIRS += docs
+# include docs/Makefile.am
distcheck-hook:
@true
@@ -89,3 +62,140 @@ endif
upload-release: $(DIST_ARCHIVES)
scp $(DIST_ARCHIVES) master.gnome.org:
ssh master.gnome.org ftpadmin install $(DIST_ARCHIVES)
+
+asn1-reparse:
+ for a in $(ASN1_FILES); do \
+ asn1Parser -o $$a.h $a \
+ sed -i 's|#include.*|/* \0 */|' $$a.h \
+ done
+
+test: $(TEST_PROGS)
+ gtester --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)
+
+check-local: test
+
+all-local: $(check_PROGRAMS)
+
+TEST_ARGS =
+
+TEST_SUPPRESSIONS = $(top_builddir)/build/valgrind-suppressions
+
+perform-memcheck: $(TEST_PROGS)
+ make -C $(top_builddir)/build all
+ @for test in $(TEST_PROGS); do \
+ G_SLICE=always-malloc libtool --mode=execute \
+ valgrind --trace-children=no --gen-suppressions=all \
+ --suppressions=$(TEST_SUPPRESSIONS) \
+ --leak-check=full --show-reachable=yes --num-callers=16 \
+ --quiet --error-exitcode=3 \
+ $(builddir)/$$test $(TEST_ARGS) || exit 3; \
+ done
+
+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
+
+# Set the relevant capabilities on the daemon
+if WITH_CAPS
+install-caps:
+ setcap cap_ipc_lock=ep $(DESTDIR)$(bindir)/gnome-keyring-daemon || true
+else
+install-caps:
+ @true
+endif
+
+# Install a link from gnome-keyring > gnome-keyring-@GKR_MAJOR@ to maintain compatibility
+install-exec-hook: install-caps
+ @test -e "$(DESTDIR)$(bindir)/gnome-keyring" || (cd $(DESTDIR)$(bindir) && $(LN_S) gnome-keyring-@GKR_MAJOR@ gnome-keyring)
+
+V_SED = $(V_SED_$(V))
+V_SED_ = $(V_SED_$(AM_DEFAULT_VERBOSITY))
+V_SED_0 = @echo " SED " $@;
+
+SED_SUBST = sed \
+ -e 's,[@]datadir[@],$(datadir),g' \
+ -e 's,[@]libexecdir[@],$(libexecdir),g' \
+ -e 's,[@]libdir[@],$(libdir),g' \
+ -e 's,[@]includedir[@],$(includedir),g' \
+ -e 's,[@]datarootdir[@],$(datarootdir),g' \
+ -e 's,[@]sysconfdir[@],$(sysconfdir),g' \
+ -e 's,[@]bindir[@],$(bindir),g' \
+ -e 's,[@]exec_prefix[@],$(exec_prefix),g' \
+ -e 's,[@]prefix[@],$(prefix),g' \
+ -e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
+ -e 's,[@]srcdir[@],$(srcdir),g' \
+ -e 's,[@]PACKAGE[@],$(PACKAGE),g' \
+ -e 's,[@]VERSION[@],$(VERSION),g' \
+ $(NULL)
+
+SUFFIXES = .desktop.in .desktop.in.in .service .service.in
+
+.service.in.service:
+ $(V_SED) ( $(SED_SUBST) $< > $@.tmp ) && mv $@.tmp $@
+
+.desktop.in.in.desktop.in:
+ $(V_SED) ( $(SED_SUBST) $< > $@.tmp ) && mv $@.tmp $@
+
+@INTLTOOL_DESKTOP_RULE@
+
+prep-builddir:
+ $(MKDIR_P) $(builddir)/daemon
+ $(MKDIR_P) $(builddir)/schema
+
+AM_CPPFLAGS = \
+ -DPREFIX=\""$(prefix)"\" \
+ -DBINDIR=\""$(bindir)"\" \
+ -DLIBEXECDIR=\""$(libexecdir)"\" \
+ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
+ -DSRCDIR="\"@abs_srcdir@\"" \
+ -DBUILDDIR="\"@abs_builddir@\"" \
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ -I$(top_srcdir)/pkcs11 \
+ $(GLIB_CFLAGS)
+
+bin_PROGRAMS =
+check_PROGRAMS = $(TEST_PROGS)
+noinst_DATA =
+noinst_LIBRARIES =
+noinst_LTLIBRARIES =
+noinst_PROGRAMS =
+
+ASN1_FILES =
+BUILT_SOURCES = prep-builddir
+CLEANFILES = $(BUILT_SOURCES)
+TEST_PROGS =
+
+moduledir = $(pkcs11standalonedir)
+module_LTLIBRARIES =
+
+EXTRA_DIST += \
+ $(ASN1_FILES)
+
+include egg/Makefile.am
+include daemon/Makefile.am
+include daemon/control/Makefile.am
+include daemon/dbus/Makefile.am
+include daemon/gpg-agent/Makefile.am
+include daemon/login/Makefile.am
+include daemon/ssh-agent/Makefile.am
+include pkcs11/Makefile.am
+include pkcs11/gkm/Makefile.am
+include pkcs11/gnome2-store/Makefile.am
+include pkcs11/rpc-layer/Makefile.am
+include pkcs11/secret-store/Makefile.am
+include pkcs11/ssh-store/Makefile.am
+include pkcs11/wrap-layer/Makefile.am
+include pkcs11/xdg-store/Makefile.am
+include schema/Makefile.am
+include tool/Makefile.am
+
+#ifdef WITH_PAM
+include pam/Makefile.am
+#endif