summaryrefslogtreecommitdiff
path: root/src/port/Makefile
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2005-12-09 21:19:36 +0000
committerPeter Eisentraut <peter_e@gmx.net>2005-12-09 21:19:36 +0000
commita29c04a541def774b10b8f119efe3724d92ee99a (patch)
tree28e96bef9320953bb4b1c0e72760718338fa7bcb /src/port/Makefile
parent3a20db975e73b507e8bf43fcbddd84d253ee78ef (diff)
downloadpostgresql-a29c04a541def774b10b8f119efe3724d92ee99a.tar.gz
Allow installation into directories containing spaces in the name.
Diffstat (limited to 'src/port/Makefile')
-rw-r--r--src/port/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/port/Makefile b/src/port/Makefile
index e17f324c0d..acc7f858a5 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -15,7 +15,7 @@
# for use only by the backend binaries
#
# IDENTIFICATION
-# $PostgreSQL: pgsql/src/port/Makefile,v 1.29 2005/09/27 17:39:35 tgl Exp $
+# $PostgreSQL: pgsql/src/port/Makefile,v 1.30 2005/12/09 21:19:36 petere Exp $
#
#-------------------------------------------------------------------------
@@ -36,11 +36,14 @@ LIBOBJS_SRV := $(patsubst thread.o,thread_srv.o, $(LIBOBJS_SRV))
all: libpgport.a libpgport_srv.a
# libpgport is needed by some contrib
-install: all
- $(INSTALL_STLIB) libpgport.a $(DESTDIR)$(libdir)
+install: all installdirs
+ $(INSTALL_STLIB) libpgport.a '$(DESTDIR)$(libdir)/libpgport.a'
+
+installdirs:
+ $(mkinstalldirs) '$(DESTDIR)$(libdir)'
uninstall:
- $(RM) $(DESTDIR)$(libdir)/libpgport.a
+ rm -f '$(DESTDIR)$(libdir)/libpgport.a'
libpgport.a: $(LIBOBJS)
$(AR) $(AROPT) $@ $^