diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 1d60560..be0a241 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -83,8 +83,7 @@ configure_args = @configure_args@ # Installation directories # # These are set by the equivalent --xxxdir configure options. We -# append "postgresql" to some of them, if the string does not already -# contain "pgsql" or "postgres", in order to avoid directory clutter. +# append "pgsql" to some of them, in order to avoid directory clutter. # # In a PGXS build, we cannot use the values inserted into Makefile.global # by configure, since the installation tree may have been relocated. @@ -102,45 +101,23 @@ datarootdir := @datarootdir@ bindir := @bindir@ datadir := @datadir@ -ifeq "$(findstring pgsql, $(datadir))" "" -ifeq "$(findstring postgres, $(datadir))" "" -override datadir := $(datadir)/postgresql -endif -endif sysconfdir := @sysconfdir@ -ifeq "$(findstring pgsql, $(sysconfdir))" "" -ifeq "$(findstring postgres, $(sysconfdir))" "" -override sysconfdir := $(sysconfdir)/postgresql -endif -endif libdir := @libdir@ pkglibdir = $(libdir) -ifeq "$(findstring pgsql, $(pkglibdir))" "" -ifeq "$(findstring postgres, $(pkglibdir))" "" -override pkglibdir := $(pkglibdir)/postgresql -endif -endif +override pkglibdir := $(pkglibdir)/pgsql includedir := @includedir@ pkgincludedir = $(includedir) -ifeq "$(findstring pgsql, $(pkgincludedir))" "" -ifeq "$(findstring postgres, $(pkgincludedir))" "" -override pkgincludedir := $(pkgincludedir)/postgresql -endif -endif +override pkgincludedir := $(pkgincludedir)/pgsql mandir := @mandir@ docdir := @docdir@ -ifeq "$(findstring pgsql, $(docdir))" "" -ifeq "$(findstring postgres, $(docdir))" "" -override docdir := $(docdir)/postgresql -endif -endif +override docdir := $(docdir)/pgsql htmldir := @htmldir@