Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f41fd34

Browse files
committed
Allow installation with pgpro prefix as well as postgresql and pgsql
1 parent dae0fc6 commit f41fd34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Makefile.global.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,45 +105,55 @@ datarootdir := @datarootdir@
105105
bindir := @bindir@
106106

107107
datadir := @datadir@
108+
ifeq "$(findstring pgpro, $(datadir))" ""
108109
ifeq "$(findstring pgsql, $(datadir))" ""
109110
ifeq "$(findstring postgres, $(datadir))" ""
110111
override datadir := $(datadir)/postgresql
111112
endif
112113
endif
114+
endif
113115

114116
sysconfdir := @sysconfdir@
117+
ifeq "$(findstring pgpro, $(sysconfdir))" ""
115118
ifeq "$(findstring pgsql, $(sysconfdir))" ""
116119
ifeq "$(findstring postgres, $(sysconfdir))" ""
117120
override sysconfdir := $(sysconfdir)/postgresql
118121
endif
119122
endif
123+
endif
120124

121125
libdir := @libdir@
122126

123127
pkglibdir = $(libdir)
128+
ifeq "$(findstring pgpro, $(pkglibdir))" ""
124129
ifeq "$(findstring pgsql, $(pkglibdir))" ""
125130
ifeq "$(findstring postgres, $(pkglibdir))" ""
126131
override pkglibdir := $(pkglibdir)/postgresql
127132
endif
128133
endif
134+
endif
129135

130136
includedir := @includedir@
131137

132138
pkgincludedir = $(includedir)
139+
ifeq "$(findstring pgpro, $(pkgincludedir))" ""
133140
ifeq "$(findstring pgsql, $(pkgincludedir))" ""
134141
ifeq "$(findstring postgres, $(pkgincludedir))" ""
135142
override pkgincludedir := $(pkgincludedir)/postgresql
136143
endif
137144
endif
145+
endif
138146

139147
mandir := @mandir@
140148

141149
docdir := @docdir@
150+
ifeq "$(findstring pgpro, $(docdir))" ""
142151
ifeq "$(findstring pgsql, $(docdir))" ""
143152
ifeq "$(findstring postgres, $(docdir))" ""
144153
override docdir := $(docdir)/postgresql
145154
endif
146155
endif
156+
endif
147157

148158
htmldir := @htmldir@
149159

0 commit comments

Comments
 (0)