Makefile.am revision 5c7c62f1e68d6c5f05a630d6a5ceae2d9d47e580
45312f52ff3a3d4c137447be4c7556500c2f8bf2Timo Sirainenaclocaldir = $(datadir)/aclocal
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainendist_pkginclude_HEADERS = \
94e1adead9faddec88a623485b9999a87b1684faTimo SirainenEXTRA_DIST = \
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainennoinst_DATA = dovecot-config
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainennodist_pkginclude_HEADERS = config.h
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainen git log --name-status --since '2009-02-16' --pretty="format:%ai %aN <%aE> (%h)%n%n%w(80,4,4)%s%n%n%b" > ChangeLog || rm -f ChangeLog
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen $(SHELL) $(top_srcdir)/update-version.sh $(top_srcdir) $(top_builddir)
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainendovecot-config: dovecot-config.in Makefile
3fe44a0df5a0bdd80c495f79cbf0e384441d6fccTimo Sirainen old=`pwd` && cd $(top_builddir) && abs_builddir=`pwd` && cd $$old && \
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$old && \
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen (echo "DOVECOT_INSTALLED=no"; cat dovecot-config.in | sed \
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen -e "s|\$$(top_builddir)|$$abs_builddir|g" \
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen -e "s|\$$(incdir)|$$abs_srcdir|g" \
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \
cb951d3282610a9a0960230865bc5f3e3347b203Timo Sirainen -e "s|\$$(MODULE_LIBS)|$(MODULE_LIBS)|g" \
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen -e "s|^\(dovecot_pkgincludedir\)=|\1=$(pkgincludedir)|" \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen -e "s|^\(dovecot_pkglibdir\)=|\1=$(pkglibdir)|" \
3fe44a0df5a0bdd80c495f79cbf0e384441d6fccTimo Sirainen -e "s|^\(dovecot_pkglibexecdir\)=|\1=$(libexecdir)/dovecot|" \
3fe44a0df5a0bdd80c495f79cbf0e384441d6fccTimo Sirainen -e "s|^\(dovecot_docdir\)=|\1=$(docdir)|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e "s|^\(dovecot_moduledir\)=|\1=$(moduledir)|" \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen ) > dovecot-config
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainenif HAVE_SYSTEMD
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainen $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainensystemdsystemunit_DATA = \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo SirainenEXTRA_DIST += dovecot.socket dovecot.service.in
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Siraineninstall-exec-hook:
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen $(mkdir_p) $(DESTDIR)$(pkglibdir); \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen grep -v '^LIBDOVECOT_.*_INCLUDE' dovecot-config | \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen grep -v '^LIBDOVECOT.*_DEPS' | sed \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen -e "s|^\(DOVECOT_INSTALLED\)=.*$$|\1=yes|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e "s|^\(LIBDOVECOT\)=.*$$|\1='-L$(pkglibdir) -ldovecot'|" \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen -e "s|^\(LIBDOVECOT_LOGIN\)=.*$$|\1='-ldovecot-login $(SSL_LIBS)'|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e "s|^\(LIBDOVECOT_SQL\)=.*$$|\1=-ldovecot-sql|" \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen -e "s|^\(LIBDOVECOT_COMPRESS\)=.*$$|\1=-ldovecot-compression|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e "s|^\(LIBDOVECOT_DSYNC\)=.*$$|\1=-ldovecot-dsync|" \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen -e "s|^\(LIBDOVECOT_LDA\)=.*$$|\1=-ldovecot-lda|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e "s|^\(LIBDOVECOT_LIBFTS\)=.*$$|\1=-ldovecot-fts|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen -e "s|^\(LIBDOVECOT_STORAGE\)=.*$$|\1='-ldovecot-storage $(LINKED_STORAGE_LDADD)'|" \
3fe44a0df5a0bdd80c495f79cbf0e384441d6fccTimo Sirainen -e "s|^\(LIBDOVECOT_INCLUDE\)=.*$$|\1=-I$(pkgincludedir)|" \
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen > $(DESTDIR)$(pkglibdir)/dovecot-config
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainenuninstall-hook:
fd1f0e9ef52b3e157cfd1a01c464c2ac7458ab17Timo Sirainen rm $(DESTDIR)$(pkglibdir)/dovecot-config
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainenif HAVE_SYSTEMD
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenCLEANFILES = $systedmsystemunit_DATA
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo SirainenDISTCLEANFILES = \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen $(top_builddir)/dovecot-version.h \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen $(top_builddir)/dovecot-config \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen $(top_builddir)/run-test.sh
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainendistcheck-hook:
3fe44a0df5a0bdd80c495f79cbf0e384441d6fccTimo Sirainen if which scan-build > /dev/null; then \
d23c747de9d33966483fbdd41f08ad7766da7c5cTimo Sirainen cd $(distdir)/_build; \
1795e934ebcd58175d3b5bbdd811b13c7889efa3Timo Sirainen scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-gssapi=auto --with-libwrap=auto; \
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainen rm -rf scan-reports; \
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainen scan-build -o scan-reports make 2>&1 || exit 1; \
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainen if ! rmdir scan-reports 2>/dev/null; then \
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52aTimo Sirainen cd ../..; rm -rf $(distdir)/_build/*; \