Re: Pattern matching for static pattern rules

2018-05-22 Thread Edward Welbourne
Alex Dehnert (22 May 2018 00:03) > I was running into some behavior that surprised me when using static > pattern rules with files in a subdirectory. [snip] > With (implicit) pattern rules, "When the target pattern does not contain a > slash (and it usually does not), directory names in the file na

Pattern matching for static pattern rules

2018-05-21 Thread Alex Dehnert
I was running into some behavior that surprised me when using static pattern rules with files in a subdirectory. A fairly minimal case: $ mkdir foo && echo foo/bar > foo/text.bar $ cat Makefile all : foo/text.bar.sha1 foo/text.bar.md5 text.%.sha1 : text.% sha1sum "$<" > "$@" foo/text.