Mercurial > dovecot > core-2.2
annotate Makefile.am @ 11140:762a4216352f HEAD
make distcheck now runs code via clang static analyzer if it exists.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 13 Apr 2010 16:02:49 +0300 |
parents | b11f69e5078e |
children | 1319fa7a7266 |
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 if BUILD_DOCS |
e87a8db60d25
Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents:
2820
diff
changeset
|
4 DOCS = doc |
e87a8db60d25
Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents:
2820
diff
changeset
|
5 endif |
e87a8db60d25
Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents:
2820
diff
changeset
|
6 |
e87a8db60d25
Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents:
2820
diff
changeset
|
7 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
|
8 . \ |
3779
e87a8db60d25
Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents:
2820
diff
changeset
|
9 src \ |
e87a8db60d25
Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents:
2820
diff
changeset
|
10 $(DOCS) |
0 | 11 |
10999
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
12 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
|
13 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
|
14 |
0 | 15 EXTRA_DIST = \ |
16 COPYING.LGPL \ | |
1901 | 17 COPYING.MIT \ |
5634 | 18 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
|
19 is-tagged.py \ |
11137
b11f69e5078e
Makefile: Added run-test.sh to tarball.
Timo Sirainen <tss@iki.fi>
parents:
11117
diff
changeset
|
20 run-test.sh \ |
10999
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
21 update-version.sh \ |
0 | 22 $(conf_DATA) |
4343
407e6c620d70
dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents:
4079
diff
changeset
|
23 |
5216 | 24 datafiles = \ |
25 dovecot-config | |
26 | |
11117
eee1e2a1c25b
configure: Removed --enable-header-install. It's now always enabled.
Timo Sirainen <tss@iki.fi>
parents:
10999
diff
changeset
|
27 nodist_pkginclude_HEADERS = config.h |
eee1e2a1c25b
configure: Removed --enable-header-install. It's now always enabled.
Timo Sirainen <tss@iki.fi>
parents:
10999
diff
changeset
|
28 pkglib_DATA = $(datafiles) |
4343
407e6c620d70
dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents:
4079
diff
changeset
|
29 |
5634 | 30 if MAINTAINER_MODE |
31 ChangeLog: .hg/dirstate | |
32 hg log --style=changelog > ChangeLog | |
33 endif | |
34 | |
10753
80a11f8650a4
Added dovecot.m4 file that external plugins can use.
Timo Sirainen <tss@iki.fi>
parents:
10687
diff
changeset
|
35 aclocal_DATA = dovecot.m4 |
80a11f8650a4
Added dovecot.m4 file that external plugins can use.
Timo Sirainen <tss@iki.fi>
parents:
10687
diff
changeset
|
36 |
10999
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
37 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
|
38 $(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
|
39 |
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
40 noop: |
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
41 |
5197
e77e4457d95c
Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents:
4343
diff
changeset
|
42 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
|
43 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
|
44 cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$old && \ |
5197
e77e4457d95c
Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents:
4343
diff
changeset
|
45 cat dovecot-config.in | sed \ |
10610
5a10d0fb008d
Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents:
9842
diff
changeset
|
46 -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
|
47 -e "s|\$$(incdir)|$$abs_srcdir|g" \ |
5a10d0fb008d
Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents:
9842
diff
changeset
|
48 -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \ |
10687
4458ce041538
dovecot-config: Renamed DOVECOT_*DIR to dovecot_*dir after all.
Timo Sirainen <tss@iki.fi>
parents:
10666
diff
changeset
|
49 -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
|
50 -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
|
51 -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
|
52 -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
|
53 -e "s|^\(dovecot_moduledir\)=|\1=$(moduledir)|" \ |
10610
5a10d0fb008d
Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents:
9842
diff
changeset
|
54 > dovecot-config |
5a10d0fb008d
Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents:
9842
diff
changeset
|
55 |
5a10d0fb008d
Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents:
9842
diff
changeset
|
56 install-exec-hook: |
10613
89928f671350
dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents:
10610
diff
changeset
|
57 rm $(DESTDIR)$(pkglibdir)/dovecot-config && \ |
10617
8dcfb629a060
dovecot-config: LIBDOVECOT_INCLUDE shouldn't have been dropped from installed file.
Timo Sirainen <tss@iki.fi>
parents:
10613
diff
changeset
|
58 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
|
59 grep -v '^LIBDOVECOT.*_DEPS' | sed \ |
89928f671350
dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents:
10610
diff
changeset
|
60 -e "s|^\(LIBDOVECOT\)=.*$$|\1='-L$(pkglibdir) -ldovecot'|" \ |
89928f671350
dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents:
10610
diff
changeset
|
61 -e "s|^\(LIBDOVECOT_LOGIN\)=.*$$|\1=-ldovecot-login|" \ |
89928f671350
dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents:
10610
diff
changeset
|
62 -e "s|^\(LIBDOVECOT_SQL\)=.*$$|\1=-ldovecot-sql|" \ |
89928f671350
dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents:
10610
diff
changeset
|
63 -e "s|^\(LIBDOVECOT_STORAGE\)=.*$$|\1=-ldovecot-storage|" \ |
10610
5a10d0fb008d
Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents:
9842
diff
changeset
|
64 -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
|
65 > $(DESTDIR)$(pkglibdir)/dovecot-config |
4343
407e6c620d70
dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents:
4079
diff
changeset
|
66 |
5216 | 67 CLEANFILES = $(datafiles) |
10999
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
68 |
a2c6c91635b5
{master,doveconf}: Show the version with hg's node id, if unreleased.
Pascal Volk <user@localhost.localdomain.org>
parents:
10768
diff
changeset
|
69 DISTCLEANFILES = $(top_builddir)/dovecot-version.h |
11140
762a4216352f
make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents:
11137
diff
changeset
|
70 |
762a4216352f
make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents:
11137
diff
changeset
|
71 distcheck-hook: |
762a4216352f
make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents:
11137
diff
changeset
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 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
|
78 exit 1; \ |
762a4216352f
make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents:
11137
diff
changeset
|
79 fi; \ |
762a4216352f
make distcheck now runs code via clang static analyzer if it exists.
Timo Sirainen <tss@iki.fi>
parents:
11137
diff
changeset
|
80 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
|
81 fi |