Re: gnuwin32 make 3.81 does not clean in one go.

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Date: Tue, 21 Oct 2008 19:36:45 +0530
> From: "Gurpreet Sachdeva" <[email protected]>
> 
> I am facing a strange problem in using a clean target.
> 
> The target is very simple -
> clean:
>         RD /S /Q $(DIR)
> 
> $DIR is the root directory with a big hierarchy of sub directories
> underneath. When I do a "make clean"
> * It throws the following error for a couple of directories.
> * Deletes all the files under these directories.
> * Deletes rest of the directories under $DIR.
> 
> C:\foo\foo1\foo2\foo3\foo4\foo5\foo6\foo7\foo8 - The process cannot access
> the file because it is being used by another process.
> C:\foo\foo1\foo2\foo3\foo4\foo5\foo6\foo7\foo8_1 - The process cannot access
> the file because it is being used by another process.
> 
> And when I do make clean again, it wipes off the remaining dirs.
> 
> Running this command RD /S /Q $(DIR) from command line works fine. I am not
> sure if someone has faced this issue and could direct me to the fix?

I cannot reproduce this, but my Make 3.81 binary was compiled from
sources by me, it isn't the binary downloaded from the MinGW site.

Are you perhaps using a non-standard shell?

Also, what version of Windows is that?

Did you pass any non-default command-line options to Make?  If so,
which ones?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.