Re: [PATCH] tools: iio: rm .*.cmd when make clean

From: Andy Shevchenko
Date: Tue Sep 03 2024 - 18:45:11 EST


Tue, Sep 03, 2024 at 08:09:23PM +0100, Jonathan Cameron kirjoitti:
> On Mon, 2 Sep 2024 11:54:12 +0800
> zhangjiao2 <zhangjiao2@xxxxxxxxxxxxxxxxxxxx> wrote:
> > On Sat, 31 Aug 2024 11:59:31, Jonathan Cameron wrote:
> > >> On Thu, 29 Aug 2024 13:33:09 +0800
> > >> zhangjiao2 <zhangjiao2@xxxxxxxxxxxxxxxxxxxx> wrote:

...

> > >> rm .*.cmd when make clean
> > > Where do those come from?
> > Those come from tools/build/Build.include.
> > These .*.cmd files ware created when make.
> > So clean them when make clean.
> Hmm. I'm still a little curious about the path to those getting created as
> I don't see them. when testing.

At least this is documented here
https://elixir.bootlin.com/linux/v6.11-rc6/source/tools/build/Documentation/Build.txt#L149

Here is where they are being created
https://elixir.bootlin.com/linux/v6.11-rc6/source/tools/build/Build.include#L58

And it seems it is only created when there are actual dependencies.

--
With Best Regards,
Andy Shevchenko