]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 54161] Fix second expansion of $* for paths
authorJouke Witteveen <j.witteveen@gmail.com>
Sat, 26 Oct 2019 10:24:15 +0000 (12:24 +0200)
committerPaul Smith <psmith@gnu.org>
Wed, 18 Dec 2019 14:05:17 +0000 (09:05 -0500)
commit86f2f8bcb5b4a03da8eb37e9a99c22d8fec4bfb2
tree191a44ac166f35b7c56c5b93d85fd48886c6977d
parentc72205b28b93ee546027ad5297ba1771f31256a6
[SV 54161] Fix second expansion of $* for paths

If the stem matches a path containing a directory not just a
filename, make sure the second expansion of $* in the
prerequisites matches $* in the recipe.  This requires using
$(*F) when replacing % in the first expansion to preserve the
simple filename.

* src/implicit.c (pattern_search): If lastslash is set prepend
the directory onto the stem.  Then use $(*F) when expanding %.
* tests/scripts/features/se_implicit: Add a test case
src/implicit.c
tests/scripts/features/se_implicit