makefile error( makedir, and MakeDirStep Twice)

General questions regarding the usage of CodeLite
ztkx
CodeLite Curious
Posts: 2
Joined: Mon Jul 05, 2010 8:15 am
Genuine User: Yes
IDE Question: C++
Contact:

makefile error( makedir, and MakeDirStep Twice)

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: makefile error( makedir, and MakeDirStep Twice)

Post 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
Make sure you have read the HOW TO POST thread
ztkx
CodeLite Curious
Posts: 2
Joined: Mon Jul 05, 2010 8:15 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: makefile error( makedir, and MakeDirStep Twice)

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: makefile error( makedir, and MakeDirStep Twice)

Post 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
Make sure you have read the HOW TO POST thread
Post Reply