summaryrefslogtreecommitdiff
path: root/src/makefiles
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-12-01 16:04:39 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-12-01 16:04:39 -0500
commitb1346822f3048ede254647f3a46186e4c0ec68d6 (patch)
tree505b5a8ad7fe97dacd997cc4f9b5bd649e3fab29 /src/makefiles
parent7b90469b71761d240bf5efe3ad5bbd228429278e (diff)
downloadpostgresql-b1346822f3048ede254647f3a46186e4c0ec68d6.tar.gz
Make sure sharedir/extension/ directory is created when needed.
The previous coding worked as long as MODULEDIR wasn't set explicitly, because we create sharedir/$(datamoduledir) and the default value of that is "extension". But if some other value is specified for MODULEDIR then the installation directory needed for the control file wasn't made. Cédric Villemain
Diffstat (limited to 'src/makefiles')
-rw-r--r--src/makefiles/pgxs.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk
index 318d5ef307..fd6473fd91 100644
--- a/src/makefiles/pgxs.mk
+++ b/src/makefiles/pgxs.mk
@@ -146,6 +146,9 @@ endif # MODULE_big
installdirs:
+ifneq (,$(EXTENSION))
+ $(MKDIR_P) '$(DESTDIR)$(datadir)/extension'
+endif
ifneq (,$(DATA)$(DATA_built))
$(MKDIR_P) '$(DESTDIR)$(datadir)/$(datamoduledir)'
endif