Skip to content

Commit 3393551

Browse files
committed
Fix vpath installation from distribution tarball (bug #5447)
1 parent 463f151 commit 3393551

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/src/sgml/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.142 2010/05/01 21:31:17 tgl Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.143 2010/05/13 11:49:47 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -277,8 +277,6 @@ check: postgres.sgml $(ALMOSTALLSGML) check-tabs
277277
## Install
278278
##
279279

280-
vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $$f && echo $$f && break; done`
281-
282280
install: install-html
283281

284282
ifneq ($(PORTNAME), sco)

src/Makefile.global.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.261 2010/03/24 13:14:02 adunstan Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.262 2010/05/13 11:49:47 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -44,6 +44,8 @@ srcdir = $(top_srcdir)/$(subdir)
4444
VPATH = $(srcdir)
4545
endif
4646

47+
vpathsearch = `for f in $(addsuffix /$(1),$(subst :, ,. $(VPATH))); do test -r $$f && echo $$f && break; done`
48+
4749
# Saved arguments from configure
4850
configure_args = @configure_args@
4951

src/backend/catalog/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile for backend/catalog
44
#
5-
# $PostgreSQL: pgsql/src/backend/catalog/Makefile,v 1.77 2010/02/16 22:34:43 tgl Exp $
5+
# $PostgreSQL: pgsql/src/backend/catalog/Makefile,v 1.78 2010/05/13 11:49:48 petere Exp $
66
#
77
#-------------------------------------------------------------------------
88

@@ -59,9 +59,9 @@ postgres.bki: genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS)
5959

6060
.PHONY: install-data
6161
install-data: $(BKIFILES) installdirs
62-
$(INSTALL_DATA) postgres.bki '$(DESTDIR)$(datadir)/postgres.bki'
63-
$(INSTALL_DATA) postgres.description '$(DESTDIR)$(datadir)/postgres.description'
64-
$(INSTALL_DATA) postgres.shdescription '$(DESTDIR)$(datadir)/postgres.shdescription'
62+
$(INSTALL_DATA) $(call vpathsearch,postgres.bki) '$(DESTDIR)$(datadir)/postgres.bki'
63+
$(INSTALL_DATA) $(call vpathsearch,postgres.description) '$(DESTDIR)$(datadir)/postgres.description'
64+
$(INSTALL_DATA) $(call vpathsearch,postgres.shdescription) '$(DESTDIR)$(datadir)/postgres.shdescription'
6565
$(INSTALL_DATA) $(srcdir)/system_views.sql '$(DESTDIR)$(datadir)/system_views.sql'
6666
$(INSTALL_DATA) $(srcdir)/information_schema.sql '$(DESTDIR)$(datadir)/information_schema.sql'
6767
$(INSTALL_DATA) $(srcdir)/sql_features.txt '$(DESTDIR)$(datadir)/sql_features.txt'

0 commit comments

Comments
 (0)