]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
zlib: Install the plugin also to pop3 directory.
authorTimo Sirainen <tss@iki.fi>
Mon, 21 Jul 2008 15:08:17 +0000 (18:08 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 21 Jul 2008 15:08:17 +0000 (18:08 +0300)
--HG--
branch : HEAD

src/plugins/zlib/Makefile.am

index 0aa9696f12ead9d9882eb0a76a70ed817ee6065c..3bb13afe4d2fc4687f58bbf01cc5410931f91ddc 100644 (file)
@@ -5,11 +5,9 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/lib-storage \
        -I$(top_srcdir)/src/lib-storage/index
 
-imap_moduledir = $(moduledir)/imap
-
 lib20_zlib_plugin_la_LDFLAGS = -module -avoid-version
 
-imap_module_LTLIBRARIES = \
+module_LTLIBRARIES = \
        lib20_zlib_plugin.la
 
 if BUILD_ZLIB
@@ -30,3 +28,10 @@ lib20_zlib_plugin_la_SOURCES = \
 noinst_HEADERS = \
        istream-zlib.h \
        zlib-plugin.h
+
+install-exec-local:
+       for d in imap pop3; do \
+         $(mkdir_p) $(DESTDIR)$(moduledir)/$$d; \
+         rm -f $(DESTDIR)$(moduledir)/$$d/lib20_zlib_plugin$(MODULE_SUFFIX); \
+         $(LN_S) ../lib20_zlib_plugin$(MODULE_SUFFIX) $(DESTDIR)$(moduledir)/$$d; \
+       done