Makefile.am revision c7713320cd35e77543f1bdc7229988a160dae322
doveadm_moduledir = $(moduledir)/doveadm
pkglibexecdir = $(libexecdir)/dovecot
SUBDIRS = dsync
bin_PROGRAMS = doveadm
pkglibexec_PROGRAMS = doveadm-server
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-auth \
-I$(top_srcdir)/src/lib-compression \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-fs \
-I$(top_srcdir)/src/lib-ssl-iostream \
-I$(top_srcdir)/src/lib-master \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-imap \
-I$(top_srcdir)/src/lib-index \
-I$(top_srcdir)/src/lib-storage \
-I$(top_srcdir)/src/lib-imap-storage \
-I$(top_srcdir)/src/lib-http \
-I$(top_srcdir)/src/lib-dcrypt \
-I$(top_srcdir)/src/auth \
-DMODULEDIR=\""$(moduledir)"\" \
-DAUTH_MODULE_DIR=\""$(moduledir)/auth"\" \
-DDOVEADM_MODULEDIR=\""$(doveadm_moduledir)"\" \
-DPKG_RUNDIR=\""$(rundir)"\" \
-DPKG_STATEDIR=\""$(statedir)"\" \
-DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
-DBINDIR=\""$(bindir)"\" \
-DMANDIR=\""$(mandir)"\" \
$(BINARY_CFLAGS)
cmd_pw_libs = \
libs = \
doveadm_LDADD = \
$(libs) \
$(cmd_pw_libs) \
$(CRYPT_LIBS) \
$(LIBDOVECOT_STORAGE) \
$(LIBDOVECOT) \
$(BINARY_LDFLAGS)
doveadm_DEPENDENCIES = \
$(libs) \
$(cmd_pw_libs) \
$(LIBDOVECOT_STORAGE_DEPS) \
$(LIBDOVECOT_DEPS)
doveadm_server_LDADD = \
$(libs) \
$(LIBDOVECOT_STORAGE) \
$(LIBDOVECOT) \
$(BINARY_LDFLAGS)
doveadm_server_DEPENDENCIES = \
$(libs) \
$(LIBDOVECOT_STORAGE_DEPS) \
$(LIBDOVECOT_DEPS)
doveadm_common_cmds = \
doveadm_common_mail_cmds = \
# these aren't actually useful in doveadm-server, but plugins may implement
# both dumping and some other commands inside a single plugin. not having the
# dump functions in doveadm-server fails to load such plugins.
doveadm_common_dump_cmds = \
common = \
$(doveadm_common_cmds) \
$(doveadm_common_mail_cmds) \
$(doveadm_common_dump_cmds) \
doveadm_SOURCES = \
$(common) \
doveadm_server_SOURCES = \
$(common) \
pkginc_libdir = $(pkgincludedir)
pkginc_lib_HEADERS = \
noinst_HEADERS = \
install-exec-local:
rm -f $(DESTDIR)$(bindir)/dsync
$(LN_S) doveadm $(DESTDIR)$(bindir)/dsync
test_programs = \
test-doveadm-util
noinst_PROGRAMS = $(test_programs)
test_libs = \
test_deps = $(noinst_LTLIBRARIES) $(test_libs)
test_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c
test_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS)
test_doveadm_util_DEPENDENCIES = $(test_deps)
check: check-am check-test
check-test: all-am
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done