Makefile.am revision e5224c0589916fb22f95f959326cf4b6221715b0
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksadoveadm_moduledir = $(moduledir)/doveadm
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksapkglibexecdir = $(libexecdir)/dovecot
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen KuksaSUBDIRS = dsync
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksabin_PROGRAMS = doveadm
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksapkglibexec_PROGRAMS = doveadm-server
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen KuksaAM_CPPFLAGS = \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-test \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-settings \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-auth \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-compression \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-dict \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-fs \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-ssl-iostream \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-master \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-mail \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-imap \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-index \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-storage \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-imap-storage \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-http \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-dcrypt \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/auth \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DMODULEDIR=\""$(moduledir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DAUTH_MODULE_DIR=\""$(moduledir)/auth"\" \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -DDOVEADM_MODULEDIR=\""$(doveadm_moduledir)"\" \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -DPKG_RUNDIR=\""$(rundir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DPKG_STATEDIR=\""$(statedir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DBINDIR=\""$(bindir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DMANDIR=\""$(mandir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(BINARY_CFLAGS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacmd_pw_libs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_LDADD = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(cmd_pw_libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(CRYPT_LIBS) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_STORAGE) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(BINARY_LDFLAGS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_DEPENDENCIES = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(cmd_pw_libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_STORAGE_DEPS) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_DEPS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_server_LDADD = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_STORAGE) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(BINARY_LDFLAGS)
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksadoveadm_server_DEPENDENCIES = \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa $(LIBDOVECOT_STORAGE_DEPS) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_DEPS)
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksadoveadm_common_cmds = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_common_mail_cmds = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa# these aren't actually useful in doveadm-server, but plugins may implement
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa# both dumping and some other commands inside a single plugin. not having the
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa# dump functions in doveadm-server fails to load such plugins.
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_common_dump_cmds = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(doveadm_common_cmds) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(doveadm_common_mail_cmds) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(doveadm_common_dump_cmds) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_SOURCES = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_server_SOURCES = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksapkginc_libdir = $(pkgincludedir)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksapkginc_lib_HEADERS = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksanoinst_HEADERS = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksainstall-exec-local:
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa rm -f $(DESTDIR)$(bindir)/dsync
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LN_S) doveadm $(DESTDIR)$(bindir)/dsync
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_programs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa test-doveadm-util
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksanoinst_PROGRAMS = $(test_programs)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_libs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_deps = $(noinst_LTLIBRARIES) $(test_libs)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_doveadm_util_DEPENDENCIES = $(test_deps)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacheck: check-am check-test
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacheck-test: all-am
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa for bin in $(test_programs); do \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \