Re: Confusion around empty recipe

2024-06-02 Thread Kaz Kylheku
On 2024-06-01 11:05, Jeenu Viswambharan wrote: > Hi, > > This is about a question I posted on Stack Overflow some time ago: > https://stackoverflow.com/questions/76954446/typescript-workflow-using-gnu-make. > The suggested solution works, but I've some follow-up questions, so > I'm trying here ins

Re: Confusion around empty recipe

2024-06-02 Thread Jeenu Viswambharan
On Sun, Jun 2, 2024 at 4:26 PM Mike Haboustak wrote: > The high-level summary is that Make does not update the mtime for > no-recipe targets after rebuilding them. Adding the empty recipe > ensures a new mtime is recorded after the target is rebuilt, even > though no additional work is performed.

Re: Multi-stem pattern rule

2024-06-02 Thread Dmitry Goncharov
On Sat, Jun 1, 2024 at 3:22 PM Masahiro Yamada wrote: > So, % matches a part of the file name, excluding the > directory path, correct? The behavior is trickier than that. When the target pattern carries no slash. $ ls a makefile p $ cat makefile all: a/.b.timestamp .%.timestamp: %.x; $(inf