Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: vahalia on February 06, 2015, 03:20:08 am

Title: Specifying makefile location
Post by: vahalia on February 06, 2015, 03:20:08 am
I have a project that needs a custom makefile. The environment is Windows 8.
i have a directory called source with a subdirectory called proj, and the .cbp file is in the source/proj directory. The makefile is in the source directory along with other source files and binaries.
In Project->Properties, I have checked the custom Makefile box and put the string "makefile" in the Makefile: box.
The execution directory filed is set to "..\..\source".
When I try to build, I get the error
    ..\..\..\..\SOURCE\ makefile                       No such file or directory
If I change the makefile box to say "..\makefile", it predictably changes the error to
    ..\..\..\..\SOURCE\ makefile                       No such file or directory
I don't know what is causing such a pathname to be created (the space at the end just before the makefile is particularly perplexing), nor how to fix it.
Can someone help? I have tried a bunch of things and searched all forums.
Title: Re: Specifying makefile location
Post by: stahta01 on February 06, 2015, 06:57:56 am
Create an makefile in the same folder as the cbp file.
It is easier to edit that makefile to call the other makefile.
Then to figure out what you are trying to do.

Tim S.
Title: Re: Specifying makefile location
Post by: vahalia on February 07, 2015, 05:37:08 am
I just tried that -- moved the makefile to the project directory.
It makes no difference, still get the same errors