Make sure sharedir/extension/ directory is created when needed.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Dec 2012 21:04:39 +0000 (16:04 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Dec 2012 21:04:39 +0000 (16:04 -0500)
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

src/makefiles/pgxs.mk

index 318d5ef3070b162b79d4241164738343d06d9f77..fd6473fd91097dcae8c91b9bf8092d92c66f0278 100644 (file)
@@ -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