Makefile.am revision 316cbe323513a0f20d1cf519fe9405e231d633e2
4909421ac41e143fe07a235c0d11e9f0452d716bTimo Sirainendoveadm_moduledir = $(moduledir)/doveadm
1969b443ad2e82f002cad570e1955f1a30146c17Timo Sirainenpkglibexecdir = $(libexecdir)/dovecot
885a3c2287ae3e5827aa580ea06b231de38abb47Timo SirainenSUBDIRS = dsync
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainenbin_PROGRAMS = doveadm
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainenpkglibexec_PROGRAMS = doveadm-server
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo SirainenAM_CPPFLAGS = \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib \
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomi -I$(top_srcdir)/src/lib-test \
4909421ac41e143fe07a235c0d11e9f0452d716bTimo Sirainen -I$(top_srcdir)/src/lib-settings \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-auth \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-dict \
75d9024d9409f4710e51dbe40ffb338a84bb1446Timo Sirainen -I$(top_srcdir)/src/lib-fs \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-master \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-mail \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-imap \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-index \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/lib-storage \
1e11a94ec50fc9b57eb2c859771c6a326ccaf86fAki Tuomi -I$(top_srcdir)/src/lib-http \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainen -I$(top_srcdir)/src/auth \
4909421ac41e143fe07a235c0d11e9f0452d716bTimo Sirainen -DMODULEDIR=\""$(moduledir)"\" \
127d0716d4aa14890e0462ff84020b5655812981Alin Dobre -DAUTH_MODULE_DIR=\""$(moduledir)/auth"\" \
4909421ac41e143fe07a235c0d11e9f0452d716bTimo Sirainen -DDOVEADM_MODULEDIR=\""$(doveadm_moduledir)"\" \
28b8434ca4cba2e310d13ffc55e895d658725f43Timo Sirainen -DPKG_RUNDIR=\""$(rundir)"\" \
680e885bc8e13032e09d7fa0e12297a5e7cbf20cTimo Sirainen -DPKG_STATEDIR=\""$(statedir)"\" \
f2a1955d993f67982bc40ad7bbae9a036dabfd64Timo Sirainen -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
a3a55999bcfe2e57941cb64343f4ea80beabdab7Timo Sirainen -DBINDIR=\""$(bindir)"\" \
28b8434ca4cba2e310d13ffc55e895d658725f43Timo Sirainen -DMANDIR=\""$(mandir)"\"
acc039dfc0b0f4588cf2feec04727b61e1c672a1Timo Sirainencmd_pw_libs = \
4909421ac41e143fe07a235c0d11e9f0452d716bTimo Sirainendoveadm_LDADD = \
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainen $(cmd_pw_libs) \
c405ed31f466424322d8d5c273055a6e8f729788Timo Sirainen $(CRYPT_LIBS) \
b71ec9499d47c92e5fd08683106c01e9face17ebTimo Sirainen $(LIBDOVECOT_STORAGE) \
7f50258fb5e71ca7965d8527f879114c39d0a0fbTimo Sirainen $(LIBDOVECOT)
acc039dfc0b0f4588cf2feec04727b61e1c672a1Timo Sirainendoveadm_DEPENDENCIES = \
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainen $(cmd_pw_libs) \
b71ec9499d47c92e5fd08683106c01e9face17ebTimo Sirainen $(LIBDOVECOT_STORAGE_DEPS) \
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainen $(LIBDOVECOT_DEPS)
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainendoveadm_server_LDADD = \
b71ec9499d47c92e5fd08683106c01e9face17ebTimo Sirainen $(LIBDOVECOT_STORAGE) \
7f50258fb5e71ca7965d8527f879114c39d0a0fbTimo Sirainen $(LIBDOVECOT)
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainendoveadm_server_DEPENDENCIES = \
b71ec9499d47c92e5fd08683106c01e9face17ebTimo Sirainen $(LIBDOVECOT_STORAGE_DEPS) \
ca44a6ba994aaa3231a20ef6e046dfd97a8dcd2dTimo Sirainen $(LIBDOVECOT_DEPS)
45ead232666a47819e89dc71dec57767340d0b62Timo Sirainendoveadm_common_cmds = \
45ead232666a47819e89dc71dec57767340d0b62Timo Sirainendoveadm_common_mail_cmds = \
c6be98b5270900746f35ebe28bd636019976e29eTimo Sirainen# these aren't actually useful in doveadm-server, but plugins may implement
c6be98b5270900746f35ebe28bd636019976e29eTimo Sirainen# both dumping and some other commands inside a single plugin. not having the
c6be98b5270900746f35ebe28bd636019976e29eTimo Sirainen# dump functions in doveadm-server fails to load such plugins.
c6be98b5270900746f35ebe28bd636019976e29eTimo Sirainendoveadm_common_dump_cmds = \
45ead232666a47819e89dc71dec57767340d0b62Timo Sirainen $(doveadm_common_cmds) \
45ead232666a47819e89dc71dec57767340d0b62Timo Sirainen $(doveadm_common_mail_cmds) \
c6be98b5270900746f35ebe28bd636019976e29eTimo Sirainen $(doveadm_common_dump_cmds) \
a6ab8f00351265e35b79f3a22b1f5a4978ae5c35Timo Sirainendoveadm_SOURCES = \
71df09024cea5f2faa93da3bb9513ee96ba6bf22Timo Sirainendoveadm_server_SOURCES = \
0169161bcdc9f186441036ad1c69ed7316ee4544Timo Sirainenpkginc_libdir = $(pkgincludedir)
0169161bcdc9f186441036ad1c69ed7316ee4544Timo Sirainenpkginc_lib_HEADERS = \
0169161bcdc9f186441036ad1c69ed7316ee4544Timo Sirainennoinst_HEADERS = \
885a3c2287ae3e5827aa580ea06b231de38abb47Timo Siraineninstall-exec-local:
885a3c2287ae3e5827aa580ea06b231de38abb47Timo Sirainen rm -f $(DESTDIR)$(bindir)/dsync
885a3c2287ae3e5827aa580ea06b231de38abb47Timo Sirainen $(LN_S) doveadm $(DESTDIR)$(bindir)/dsync
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomitest_programs = \
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomi test-doveadm-util
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuominoinst_PROGRAMS = $(test_programs)
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomitest_libs = \
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomitest_deps = $(noinst_LTLIBRARIES) $(test_libs)
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomitest_doveadm_util_SOURCES = test-doveadm-util.c
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomitest_doveadm_util_LDADD = doveadm-util.o $(test_libs) $(MODULE_LIBS)
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomitest_doveadm_util_DEPENDENCIES = $(test_deps)
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomicheck: check-am check-test
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomicheck-test: all-am
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomi for bin in $(test_programs); do \
35a2af0c24277e9b9d935271abc3b709fa856d3eAki Tuomi if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \