Make ECPG test programs depend on "ecpg$(X)", not "ecpg".

Noah Misch <noah@leadboat.com>

Commit: 63d2c0c573ff2a9ba0391576dc569260b4de5dd9
Author: Noah Misch <noah@leadboat.com>
Date: 2014-11-03T02:45:00Z
Releases: 9.4.0
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.

Files

PathChange+/−
src/interfaces/ecpg/test/Makefile.regress modified +1 −1