Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f1658c

Browse files
committed
Put back the copying of some of the regression test data files for vpath
builds. It is too complicated to fix in another way for now.
1 parent706a308 commit8f1658c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

‎src/makefiles/pgxs.mk

Lines changed: 18 additions & 1 deletion
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.14 2008/10/02 12:25:25 tgl Exp $
3+
# $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.15 2008/10/03 08:00:16 petere 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
@@ -232,6 +232,23 @@ endif
232232
# where to find psql for running the tests
233233
PSQLDIR =$(bindir)
234234

235+
# When doing a VPATH build, must copy over the data files so that the
236+
# driver script can find them. We have to use an absolute path for
237+
# the targets, because otherwise make will try to locate the missing
238+
# files using VPATH, and will find them in $(srcdir), but the point
239+
# here is that we want to copy them from $(srcdir) to the build
240+
# directory.
241+
242+
ifdefVPATH
243+
abs_builddir :=$(shell pwd)
244+
test_files_src :=$(wildcard$(srcdir)/data/*.data)
245+
test_files_build :=$(patsubst$(srcdir)/%,$(abs_builddir)/%,$(test_files_src))
246+
247+
all:$(test_files_build)
248+
$(test_files_build):$(abs_builddir)/%:$(srcdir)/%
249+
ln -s$<$@
250+
endif# VPATH
251+
235252
.PHONY: submake
236253
submake:
237254
ifndefPGXS

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp