aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2014-11-02 21:43:25 -0500
committerNoah Misch <noah@leadboat.com>2014-11-02 21:45:00 -0500
commit63d2c0c573ff2a9ba0391576dc569260b4de5dd9 (patch)
tree1dd6ef270cf05de03e93f0a57c045a61175fed2b
parent94c1dec0d9c1da40ab956520ae093cdad478fcd4 (diff)
downloadpostgresql-63d2c0c573ff2a9ba0391576dc569260b4de5dd9.tar.gz
postgresql-63d2c0c573ff2a9ba0391576dc569260b4de5dd9.zip
Make ECPG test programs depend on "ecpg$(X)", not "ecpg".
Cygwin builds require this of dependencies pertaining to pattern rules. On Cygwin, stat("foo") in the absence of a file with that exact name can locate foo.exe. While GNU make uses stat() for dependencies of ordinary rules, it uses readdir() to assess dependencies of pattern rules. Therefore, a pattern rule dependency should match any underlying file name exactly. Back-patch to 9.4, where the dependency was introduced.
-rw-r--r--src/interfaces/ecpg/test/Makefile.regress2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/Makefile.regress b/src/interfaces/ecpg/test/Makefile.regress
index fd6e83aeafa..b3d7c1e874a 100644
--- a/src/interfaces/ecpg/test/Makefile.regress
+++ b/src/interfaces/ecpg/test/Makefile.regress
@@ -12,7 +12,7 @@ override LIBS := -lecpg -lpgtypes $(filter -l%, $(libpq)) $(LIBS) $(PTHREAD_LIBS
ECPG = ../../preproc/ecpg --regression -I$(srcdir)/../../include -I$(srcdir)
# Files that most or all ecpg preprocessor test outputs depend on
-ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg \
+ECPG_TEST_DEPENDENCIES = ../../preproc/ecpg$(X) \
$(srcdir)/../regression.h \
$(srcdir)/../../include/sqlca.h \
$(srcdir)/../../include/sqlda.h \