Skip to content

Commit 9cc5cae

Browse files
committed
Fix this:
$ ./configure --without-docdir .. $ cd contrib/pgstattuple/ $ make install mkdir -p -- /contrib mkdir: cannot create directory `/contrib': Permission denied make: *** [installdirs] Error 1 ISHIDA Akio
1 parent 2c07d6b commit 9cc5cae

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/makefiles/pgxs.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PGXS: PostgreSQL extensions makefile
22

3-
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.4 2005/05/17 18:26:22 tgl Exp $
3+
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.5 2005/08/12 21:02:25 momjian Exp $
44

55
# This file contains generic rules to build many kinds of simple
66
# extension modules. You only need to set a few variables and include
@@ -100,10 +100,12 @@ ifdef MODULES
100100
done
101101
endif # MODULES
102102
ifdef DOCS
103+
ifdef docdir
103104
@for file in $(addprefix $(srcdir)/, $(DOCS)); do \
104105
echo "$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/contrib"; \
105106
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/contrib; \
106107
done
108+
endif # docdir
107109
endif # DOCS
108110
ifdef PROGRAM
109111
$(INSTALL_PROGRAM) $(PROGRAM)$(X) $(DESTDIR)$(bindir)
@@ -133,8 +135,10 @@ ifneq (,$(MODULES)$(MODULE_big))
133135
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
134136
endif
135137
ifdef DOCS
138+
ifdef docdir
136139
$(mkinstalldirs) $(DESTDIR)$(docdir)/contrib
137-
endif
140+
endif # docdir
141+
endif # DOCS
138142
ifneq (,$(PROGRAM)$(SCRIPTS)$(SCRIPTS_built))
139143
$(mkinstalldirs) $(DESTDIR)$(bindir)
140144
endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy