annotate Makefile.am @ 10617:8dcfb629a060 HEAD

dovecot-config: LIBDOVECOT_INCLUDE shouldn't have been dropped from installed file.
author Timo Sirainen <tss@iki.fi>
date Sun, 31 Jan 2010 19:15:39 +0200
parents 89928f671350
children de9d6dae7fe5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3779
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
1 if BUILD_DOCS
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
2 DOCS = doc
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
3 endif
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
4
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
5 SUBDIRS = \
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
6 src \
e87a8db60d25 Added --with-docs parameter to specify if documentation should be installed.
Timo Sirainen <tss@iki.fi>
parents: 2820
diff changeset
7 $(DOCS)
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 EXTRA_DIST = \
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 COPYING.LGPL \
1901
f59cd148bdfe COPYING.MIT missing
Timo Sirainen <tss@iki.fi>
parents: 1425
diff changeset
11 COPYING.MIT \
5634
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
12 ChangeLog \
0
3b1985cbc908 Initial revision
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13 $(conf_DATA)
4343
407e6c620d70 dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents: 4079
diff changeset
14
5216
Timo Sirainen <tss@iki.fi>
parents: 5197
diff changeset
15 datafiles = \
Timo Sirainen <tss@iki.fi>
parents: 5197
diff changeset
16 dovecot-config
Timo Sirainen <tss@iki.fi>
parents: 5197
diff changeset
17
5197
e77e4457d95c Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents: 4343
diff changeset
18 if INSTALL_HEADERS
8545
ef08feef501a Don't add config.h to tarball in make dist.
Timo Sirainen <tss@iki.fi>
parents: 5634
diff changeset
19 nodist_pkginclude_HEADERS = config.h
5216
Timo Sirainen <tss@iki.fi>
parents: 5197
diff changeset
20 pkglib_DATA = $(datafiles)
5197
e77e4457d95c Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents: 4343
diff changeset
21 else
5216
Timo Sirainen <tss@iki.fi>
parents: 5197
diff changeset
22 noinst_DATA = $(datafiles)
5197
e77e4457d95c Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents: 4343
diff changeset
23 endif
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
69ca46114593 Mercurify the repository
Timo Sirainen <tss@iki.fi>
parents: 5216
diff changeset
27 hg log --style=changelog > ChangeLog
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
5197
e77e4457d95c Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents: 4343
diff changeset
30 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
31 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
32 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
33 cat dovecot-config.in | sed \
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
34 -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
35 -e "s|\$$(incdir)|$$abs_srcdir|g" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
36 -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \
5197
e77e4457d95c Added --with-headers configure option to install .h files.
Timo Sirainen <tss@iki.fi>
parents: 4343
diff changeset
37 -e "s|^moduledir=|moduledir=$(moduledir)|" \
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
38 -e "s|^dovecot_pkgincludedir=|dovecot_pkgincludedir=$(pkgincludedir)|" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
39 -e "s|^dovecot_pkglibdir=|dovecot_pkglibdir=$(pkglibdir)|" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
40 -e "s|^dovecot_pkglibexecdir=|dovecot_pkglibexecdir=$(pkglibexecdir)|" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
41 -e "s|^dovecot_docdir=|dovecot_docdir=$(docdir)|" \
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
42 > dovecot-config
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
43
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
44 if INSTALL_HEADERS
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
45 install-exec-hook:
10613
89928f671350 dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents: 10610
diff changeset
46 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
47 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
48 grep -v '^LIBDOVECOT.*_DEPS' | sed \
89928f671350 dovecot-config: Don't rely on installed .la files.
Timo Sirainen <tss@iki.fi>
parents: 10610
diff changeset
49 -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
50 -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
51 -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
52 -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
53 -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
54 > $(DESTDIR)$(pkglibdir)/dovecot-config
10610
5a10d0fb008d Changed dovecot-config file to contain useful content.
Timo Sirainen <tss@iki.fi>
parents: 9842
diff changeset
55 endif
4343
407e6c620d70 dovecot-config now contains module_dir
Timo Sirainen <tss@iki.fi>
parents: 4079
diff changeset
56
5216
Timo Sirainen <tss@iki.fi>
parents: 5197
diff changeset
57 CLEANFILES = $(datafiles)