Author Topic: Specifying makefile location  (Read 1430 times)

Offline vahalia

  • Single posting newcomer
  • *
  • Posts: 7
Specifying makefile location
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6636
    • My Best Post
Re: Specifying makefile location
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline vahalia

  • Single posting newcomer
  • *
  • Posts: 7
Re: Specifying makefile location
« Reply #2 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