summaryrefslogtreecommitdiff
path: root/src/backend/snowball
diff options
context:
space:
mode:
authorPeter Eisentraut2008-04-07 14:15:58 +0000
committerPeter Eisentraut2008-04-07 14:15:58 +0000
commit46e76373ec6036a0a53206ef0ea87df75d082c48 (patch)
treeca715a035d641cdd7af1bf074848e435da28a1df /src/backend/snowball
parent8deafd6fdff78ce5412b6de75efc07ee7283a266 (diff)
Implement a few changes to how shared libraries and dynamically loadable
modules are built. Foremost, it creates a solid distinction between these two types of targets based on what had already been implemented and duplicated in ad hoc ways before. Specifically, - Dynamically loadable modules no longer get a soname. The numbers previously set in the makefiles were dummy numbers anyway, and the presence of a soname upset a few packaging tools, so it is nicer not to have one. - The cumbersome detour taken on installation (build a libfoo.so.0.0.0 and then override the rule to install foo.so instead) is removed. - Lots of duplicated code simplified.
Diffstat (limited to 'src/backend/snowball')
-rw-r--r--src/backend/snowball/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/backend/snowball/Makefile b/src/backend/snowball/Makefile
index 466a507c08..a1d22f24c6 100644
--- a/src/backend/snowball/Makefile
+++ b/src/backend/snowball/Makefile
@@ -2,7 +2,7 @@
#
# Makefile for src/backend/snowball
#
-# $PostgreSQL: pgsql/src/backend/snowball/Makefile,v 1.5 2008/03/18 16:24:50 petere Exp $
+# $PostgreSQL: pgsql/src/backend/snowball/Makefile,v 1.6 2008/04/07 14:15:58 petere Exp $
#
#-------------------------------------------------------------------------
@@ -77,11 +77,7 @@ else
VPATH = $(srcdir)/libstemmer
endif
-SHLIB_LINK := $(BE_DLLLIBS)
-
NAME := dict_snowball
-SO_MAJOR_VERSION := 0
-SO_MINOR_VERSION := 0
rpath =
all: all-shared-lib $(SQLSCRIPT)
@@ -116,10 +112,7 @@ else
echo "-- No language-specific snowball dictionaries, for lack of shared library support" > $@
endif
-install: all installdirs
-ifeq ($(enable_shared), yes)
- $(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)'
-endif
+install: all installdirs install-lib
$(INSTALL_DATA) $(SQLSCRIPT) '$(DESTDIR)$(datadir)'
@set -e; \
set $(LANGUAGES) ; \
@@ -131,11 +124,10 @@ endif
fi \
done
-installdirs:
- $(mkinstalldirs) '$(DESTDIR)$(pkglibdir)' '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
+installdirs: installdirs-lib
+ $(mkinstalldirs) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(datadir)/$(DICTDIR)'
-uninstall:
- rm -f '$(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)'
+uninstall: uninstall-lib
rm -f '$(DESTDIR)$(datadir)/$(SQLSCRIPT)'
@set -e; \
set $(LANGUAGES) ; \