Page 1 of 1

makefile error( makedir, and MakeDirStep Twice)

Posted: Mon Jul 05, 2010 8:28 am
by ztkx
hi, everybody,
I try to use code::Lite 2.5.2. codelite would be report the same error when I build a project(even a simplest project) every time.
So, I check Makefile(myporject.mk), I think the Makefile is error .

Code: Select all

$(OutputFile): makeDirStep $(Objects)
  @$(MakeDirCommand) $(@D)
  $(LinkerName) $(OutputSwitch)$(OutputFile) $(Objects) $(LibPath) $(Libs) $(LinkOptions)

makeDirStep:
  @$(MakeDirCommand) "./Debug"
obviously, makedir was execute twice, and $(makeDirCommand) = makedir( neither md, nor mkdir, I am in windows 7 basic). Though I try to modify it manually, CL could reverse every time I build.

Re: makefile error( makedir, and MakeDirStep Twice)

Posted: Mon Jul 05, 2010 11:58 am
by eranif
ztkx wrote:I try to use code::Lite 2.5.2. codelite would be report the same error when I build a project(even a simplest project)
What is the error? Please add the output if the 'Build' windows + the output of the 'Trace' Window.
ztkx wrote:$(makeDirCommand) = makedir
This is correct, codelite uses its own makedir command, since Winodws mkdir does provide the -p switch nor it ignores errors. The 'makedir.exe' is located under the same installation path as codelite itself
ztkx wrote:obviously, makedir was execute twice
I dont see any problem with that (makedir.exe simply ignores the error)
ztkx wrote:CL could reverse every time I build
There is a clear comment at the top of the makefile that says:
##
## Auto Generated makefile by CodeLite IDE
## any manual changes will be erased
##
Eran

Re: makefile error( makedir, and MakeDirStep Twice)

Posted: Mon Jul 05, 2010 4:53 pm
by ztkx
thanks, I don't realize codelite provide a makedir programme, so it is ok after I set %CODELITE_HOME% into Path.

but, mingw maybe no enough priviledge, I could not clean project. The Following is error:

Code: Select all

rm -f ./Debug/*.*
rm: ./Debug/original.exe: Permission denied
mingw32-make.exe[1]: *** [clean] Error 1
mingw32-make.exe: *** [clean] Error 2
I am in windows 7 Basic

Re: makefile error( makedir, and MakeDirStep Twice)

Posted: Mon Jul 05, 2010 6:46 pm
by eranif
Looks like you got a permission problems on your file system.
Try placing your project on a file which you *know* that you got permissions

Eran