Skip to content

Commit 04f91ae

Browse files
committed
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
1 parent 1b4359b commit 04f91ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/makefiles/pgxs.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ endif # MODULE_big
136136

137137

138138
installdirs:
139+
ifneq (,$(EXTENSION))
140+
$(MKDIR_P) '$(DESTDIR)$(datadir)/extension'
141+
endif
139142
ifneq (,$(DATA)$(DATA_built))
140143
$(MKDIR_P) '$(DESTDIR)$(datadir)/$(datamoduledir)'
141144
endif

0 commit comments

Comments
 (0)