From: Tom Lane Date: Sat, 1 Dec 2012 21:04:44 +0000 (-0500) Subject: Make sure sharedir/extension/ directory is created when needed. X-Git-Tag: REL9_2_2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53a1c31237298e4aeedc4f9926678505bf417d94;p=postgresql 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 --- 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