Re: Multi-stem pattern rule

Dmitry Goncharov <[email protected]> Fri, 31 May 2024 10:21:27 -0400
Newsgroups gmane.comp.gnu.make.general
Message-ID <CAG+Z0CtX8upvmWyCsY3nURiDJv1uKXd+4JUMxuROunfoApdB1w@mail.gmail.com>
On Thu, May 30, 2024 at 7:45 PM Masahiro Yamada <[email protected]> wrote:
> The main purpose is to prepend '.' to the file name
> in order to hide less-important files.
>
> For example, like this:
>
>   a/b.x    -->  a/.b.timestamp
>   p/q/r.x  -->  p/q/.r.timestamp

$ ls -F
a/  makefile  p/
$ ls a/
b.x
$ ls p/q/
r.x
$ cat makefile
all: a/.b.timestamp p/q/.r.timestamp
.%.timestamp: %.x; $(info building $@ from $<)
$ make
building a/.b.timestamp from a/b.x
building p/q/.r.timestamp from p/q/r.x
make: Nothing to be done for 'all'.


regards, Dmitry