annotate Makefile.am @ 18246:16c21c12e21f

dovecot-config: Added DOVECOT_INSTALLED parameter. Also added dovecot_installed_moduledir to dovecot.m4 These can be used by external plugins to access some headers and libraries that don't already have existing DOVECOT_* parameters in dovecot-config.
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Feb 2015 14:35:54 +0200
parents 3675d156b309
children 86d382b0c4d8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10753
80a11f8650a4 Added dovecot.m4 file that external plugins can use.
Timo Sirainen <tss@iki.fi>
parents: 10687
diff changeset
1 aclocaldir = $(datadir)/aclocal
80a11f8650a4 Added dovecot.m4 file that external plugins can use.
Timo Sirainen <tss@iki.fi>
parents: 10687
diff changeset
2
3779
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
3 SUBDIRS = \
10999
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
4 . \
3779
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
5 src \
11644
be2b7d2901a0 doc: added manual pages
Pascal Volk <user@localhost.localdomain.org>
parents: 11186
diff changeset
6 doc
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7
10999
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
8 dist_pkginclude_HEADERS = \
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
9 dovecot-version.h
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
10
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 EXTRA_DIST = \
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12 COPYING.LGPL \
1901
f59cd148bdfe COPYING.MIT missing
Timo Sirainen <tss@iki.fi>
parents: 1425
diff changeset
13 COPYING.MIT \
5634
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
14 ChangeLog \
10999
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
15 is-tagged.py \
11137
b11f69e5078e Makefile: Added run-test.sh to tarball.
Timo Sirainen <tss@iki.fi>
parents: 11117
diff changeset
16 run-test.sh \
15206
dbf88dc1b873 Makefile: Added cc-wrapper.sh.in missing from last commit
Timo Sirainen <tss@iki.fi>
parents: 14744
diff changeset
17 cc-wrapper.sh.in \
10999
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
18 update-version.sh \
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
19 $(conf_DATA)
4343
407e6c620d70 dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents: 4079
diff changeset
20
14284
a743cc250208 Makefile: Fix to previous change to get dovecot-config file built again.
Timo Sirainen <tss@iki.fi>
parents: 14283
diff changeset
21 noinst_DATA = dovecot-config
a743cc250208 Makefile: Fix to previous change to get dovecot-config file built again.
Timo Sirainen <tss@iki.fi>
parents: 14283
diff changeset
22
11117
eee1e2a1c25b configure: Removed --enable-header-install. It's now always enabled.
Timo Sirainen <tss@iki.fi>
parents: 10999
diff changeset
23 nodist_pkginclude_HEADERS = config.h
4343
407e6c620d70 dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents: 4079
diff changeset
24
5634
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
25 if MAINTAINER_MODE
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
26 ChangeLog: .hg/dirstate
11704
0ca72121aa46 Makefile: Stop generated ChangeLog at v1.2.rc1.
Timo Sirainen <tss@iki.fi>
parents: 11644
diff changeset
27 hg log -r tip:fef8259e7277 --style=changelog > ChangeLog
5634
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
28 endif
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
29
10753
80a11f8650a4 Added dovecot.m4 file that external plugins can use.
Timo Sirainen <tss@iki.fi>
parents: 10687
diff changeset
30 aclocal_DATA = dovecot.m4
80a11f8650a4 Added dovecot.m4 file that external plugins can use.
Timo Sirainen <tss@iki.fi>
parents: 10687
diff changeset
31
10999
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
32 dovecot-version.h: noop
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
33 $(SHELL) $(top_srcdir)/update-version.sh $(top_srcdir) $(top_builddir)
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
34
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
35 noop:
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
36
5197
e77e4457d95c Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents: 4343
diff changeset
37 dovecot-config: dovecot-config.in Makefile
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
38 old=`pwd` && cd $(top_builddir) && abs_builddir=`pwd` && cd $$old && \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
39 cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$old && \
18246
16c21c12e21f dovecot-config: Added DOVECOT_INSTALLED parameter.
Timo Sirainen <tss@iki.fi>
parents: 17801
diff changeset
40 (echo "DOVECOT_INSTALLED=no"; cat dovecot-config.in | sed \
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
41 -e "s|\$$(top_builddir)|$$abs_builddir|g" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
42 -e "s|\$$(incdir)|$$abs_srcdir|g" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
43 -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \
15928
217fb4ca9b5a MODULE_LIBS is now part of LIBDOVECOT. No need to explicitly link it everywhere.
Timo Sirainen <tss@iki.fi>
parents: 15646
diff changeset
44 -e "s|\$$(MODULE_LIBS)|$(MODULE_LIBS)|g" \
10687
4458ce041538 dovecot-config: Renamed DOVECOT_*DIR to dovecot_*dir after all.
Timo Sirainen <tss@iki.fi>
parents: 10666
diff changeset
45 -e "s|^\(dovecot_pkgincludedir\)=|\1=$(pkgincludedir)|" \
4458ce041538 dovecot-config: Renamed DOVECOT_*DIR to dovecot_*dir after all.
Timo Sirainen <tss@iki.fi>
parents: 10666
diff changeset
46 -e "s|^\(dovecot_pkglibdir\)=|\1=$(pkglibdir)|" \
4458ce041538 dovecot-config: Renamed DOVECOT_*DIR to dovecot_*dir after all.
Timo Sirainen <tss@iki.fi>
parents: 10666
diff changeset
47 -e "s|^\(dovecot_pkglibexecdir\)=|\1=$(libexecdir)/dovecot|" \
4458ce041538 dovecot-config: Renamed DOVECOT_*DIR to dovecot_*dir after all.
Timo Sirainen <tss@iki.fi>
parents: 10666
diff changeset
48 -e "s|^\(dovecot_docdir\)=|\1=$(docdir)|" \
4458ce041538 dovecot-config: Renamed DOVECOT_*DIR to dovecot_*dir after all.
Timo Sirainen <tss@iki.fi>
parents: 10666
diff changeset
49 -e "s|^\(dovecot_moduledir\)=|\1=$(moduledir)|" \
18246
16c21c12e21f dovecot-config: Added DOVECOT_INSTALLED parameter.
Timo Sirainen <tss@iki.fi>
parents: 17801
diff changeset
50 ) > dovecot-config
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
51
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
52 if HAVE_SYSTEMD
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
53 %.service: %.service.in
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
54 $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
55
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
56 systemdsystemunit_DATA = \
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
57 dovecot.socket \
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
58 dovecot.service
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
59 else
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
60 EXTRA_DIST += dovecot.socket dovecot.service.in
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
61 endif
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
62
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
63 install-exec-hook:
14307
8c6ff808902c Makefile: s/MKDIR_P/mkdir_p/ to make it actually work
Timo Sirainen <tss@iki.fi>
parents: 14284
diff changeset
64 $(mkdir_p) $(DESTDIR)$(pkglibdir); \
10617
8dcfb629a060 dovecot-config: LIBDOVECOT_INCLUDE shouldn't have been dropped from installed file.
Timo Sirainen <tss@iki.fi>
parents: 10613
diff changeset
65 grep -v '^LIBDOVECOT_.*_INCLUDE' dovecot-config | \
10613
89928f671350 dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents: 10610
diff changeset
66 grep -v '^LIBDOVECOT.*_DEPS' | sed \
18246
16c21c12e21f dovecot-config: Added DOVECOT_INSTALLED parameter.
Timo Sirainen <tss@iki.fi>
parents: 17801
diff changeset
67 -e "s|^\(DOVECOT_INSTALLED\)=.*$$|\1=yes|" \
10613
89928f671350 dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents: 10610
diff changeset
68 -e "s|^\(LIBDOVECOT\)=.*$$|\1='-L$(pkglibdir) -ldovecot'|" \
15544
f77e87298a66 Makefile: dovecot-config was missing quotes in LIBDOVECOT_LOGIN
Timo Sirainen <tss@iki.fi>
parents: 15510
diff changeset
69 -e "s|^\(LIBDOVECOT_LOGIN\)=.*$$|\1='-ldovecot-login $(SSL_LIBS)'|" \
10613
89928f671350 dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents: 10610
diff changeset
70 -e "s|^\(LIBDOVECOT_SQL\)=.*$$|\1=-ldovecot-sql|" \
14744
5e10caeb5e5d Makefile: Fixed -ldovecot-compression name
Timo Sirainen <tss@iki.fi>
parents: 14739
diff changeset
71 -e "s|^\(LIBDOVECOT_COMPRESS\)=.*$$|\1=-ldovecot-compression|" \
17801
3675d156b309 Install libdovecot-dsync.so library, which can be used separately.
Timo Sirainen <tss@iki.fi>
parents: 17363
diff changeset
72 -e "s|^\(LIBDOVECOT_DSYNC\)=.*$$|\1=-ldovecot-dsync|" \
11186
1319fa7a7266 lib-lda is now an installed shared library.
Timo Sirainen <tss@iki.fi>
parents: 11140
diff changeset
73 -e "s|^\(LIBDOVECOT_LDA\)=.*$$|\1=-ldovecot-lda|" \
15503
7d931927e4ac Makefile: Add -lssl to installed dovecot-config's LIBDOVECOT_STORAGE if needed.
Timo Sirainen <tss@iki.fi>
parents: 14545
diff changeset
74 -e "s|^\(LIBDOVECOT_STORAGE\)=.*$$|\1='-ldovecot-storage $(LINKED_STORAGE_LDADD)'|" \
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
75 -e "s|^\(LIBDOVECOT_INCLUDE\)=.*$$|\1=-I$(pkgincludedir)|" \
10613
89928f671350 dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents: 10610
diff changeset
76 > $(DESTDIR)$(pkglibdir)/dovecot-config
4343
407e6c620d70 dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents: 4079
diff changeset
77
14545
f7bb8d105710 Makefile: Remove dovecot-config on make uninstall
Timo Sirainen <tss@iki.fi>
parents: 14324
diff changeset
78 uninstall-hook:
f7bb8d105710 Makefile: Remove dovecot-config on make uninstall
Timo Sirainen <tss@iki.fi>
parents: 14324
diff changeset
79 rm $(DESTDIR)$(pkglibdir)/dovecot-config
f7bb8d105710 Makefile: Remove dovecot-config on make uninstall
Timo Sirainen <tss@iki.fi>
parents: 14324
diff changeset
80
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
81 if HAVE_SYSTEMD
17363
791ec610422c Released v2.2.13.rc1.
Timo Sirainen <tss@iki.fi>
parents: 15928
diff changeset
82 CLEANFILES = $systedmsystemunit_DATA
12439
84eb4afebc95 Added support for systemd.
Timo Sirainen <tss@iki.fi>
parents: 11704
diff changeset
83 endif
10999
a2c6c91635b5 {master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents: 10768
diff changeset
84
14324
e75446fc828c Makefile: Delete dovecot-config on distclean
Timo Sirainen <tss@iki.fi>
parents: 14307
diff changeset
85 DISTCLEANFILES = \
e75446fc828c Makefile: Delete dovecot-config on distclean
Timo Sirainen <tss@iki.fi>
parents: 14307
diff changeset
86 $(top_builddir)/dovecot-version.h \
e75446fc828c Makefile: Delete dovecot-config on distclean
Timo Sirainen <tss@iki.fi>
parents: 14307
diff changeset
87 $(top_builddir)/dovecot-config
11140
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
88
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
89 distcheck-hook:
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
90 if which scan-build > /dev/null; then \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
91 cd $(distdir)/_build; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
92 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; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
93 rm -rf scan-reports; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
94 scan-build -o scan-reports make 2>&1 || exit 1; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
95 if ! rmdir scan-reports 2>/dev/null; then \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
96 exit 1; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
97 fi; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
98 cd ../..; rm -rf $(distdir)/_build/*; \
762a4216352f make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents: 11137
diff changeset
99 fi