On Sun, Jun 2, 2024 at 4:26 PM Mike Haboustak <habous...@gmail.com> 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.

Ah yes - I suspected as much! Because, from the output of 'make -rd',
I could see make running the touch command to update the .js files,
but subsequently make says the prerequisite, which it just updated, is
still older.

> The three work-arounds are: an empty recipe implicit rule, the new
> grouped targets implicit rule feature, or pattern rules, which work
> differently. Pattern rules may be what you want, unfortunately they're
> often not flexible enough to match all target/prerequisite file paths.

Now that I know what's happening, I think I can live with empty-recipe
workaround.

-- 
Jeenu

Reply via email to