2020-09-07 03:53 AM
Hello,
I use STM32CubeIDE v 1.4.2
It appeared today during the build my project:
make clean
make: *** No rule to make target `clean'. Stop.
"make clean" terminated with exit code 2. Build might be incomplete.
11:48:08 Build Failed. 1 errors, 0 warnings. (took 100ms)
Other projects can be built.
How can this error be fixed?
Peter
2020-09-29 01:50 PM
So no answers yet, huh? That really *****... I have the same question.
2020-09-29 01:52 PM
apparently you can't write ***** on this site - as in my vacuum ***** the dirt from the carpet, or the draft ***** the hot air from a room, or this forum *****
2021-05-02 09:28 AM
I have the same problem. Happens with imported examples mostly. I suspect there is somewhere to check a box. It is irritating not being able to fix it..
2021-05-02 11:41 AM
When I have these problems I make sure to select the Project name in the Project Explorer window. I then right click and select clean project, then repeat with build project. I've noticed if you happen to have another file selected and do a clean or build the Eclipse based GUI gets confused. That's my 2 cents ...
2021-05-02 03:58 PM
The problem seemed to fix itself, but I will keep this in mind. Thanks.
2021-05-06 04:38 PM
For me, I started getting the error " *** No rule to make target 'clean' " when I added a folder to the project.
(I linked to the folder rather than copy it to the workspace, in case that matters.)
To fix:
Right-click on the project
In the pop-up select Index -> Update with Modified Files.
I may have also done Index -> Refresh.
Anyway, after a Build I can now Clean OK.
I noticed that if I Clean Project and then attempt to Clean Project a second time (when project is already clean) I get the error.
I didn't think that happened before I started getting the error, but it definitely works now when I need it.
I hope this helps.
2023-04-14 07:02 AM - edited 2023-11-20 09:28 AM
did you fix that error? I am also getting the same error with this method