Bug #17841 2011-01-06 10:46
marcdorval
Clean fails with custom makefile
With Code::Blocks V10.05 (build May 27 2010, 19:10:05), when uisng a custom makefile I get an error message during 'rebuild', in the 'clean'.
The error message is:
make.exe: *** No rule to make target `clean../SampleCode/Out/Silabs_L0_Connection.dll'. Stop.
Carefully looking into this message shows that there is no space between 'clean' and the filename ''../SampleCode...".
This name is filled in the Project/Targets options/Build targets dialog.
Solution:
Insert at least one space character in the file name in this dialog.
In this case, the command in now 'make clean ../SampleC. . .' ant it works fine.
Proposed correction: make sure that while 'cleaning' a space is added by the tool between 'clean' and the target name before execution of the make clean command.
Tricky to find, easy to solve...
- Category
- Compiler
- Group
- Status
- Open
- Close date
- Assigned to
History
The solution is:
in the Poject build options/"Make" commands tab, under 'Clean project/target', insert a space in '$make -f $makefile clean$target 'between 'clean' and '$target'.
This should be done in the sources, to avoid users being annoyed by this.