Annoying issue with make, will not auto create build directory

Posted In: C/C++ Advanced
  • Profile photo of zoooo
    zoooo on: June 29, 2016 at 7:28 pm #316


    I have a make file that gathers some local information and uses it (in theory) to create a locally named build directory if it doesn’t exist.


    The test print code prints what I would expect,


    I get an error,


    If I manually create the build directory, bld_CYGWIN_NT-5.1_2.3.i686_gcc-4.9.3, the compiler continues and creates the first object, main.o. I have had this issue off and on and can’t seem to identify where the problem is. In some cases, the directory doesn’t get created and in others it does. I use the same syntax for mkdir in every make, so I’m not sure where I am going wrong. It’s not the end of the world to have to make a directory but the point of what I am trying to set up is for some of this to be automated based on whatever system I am booted into. The “@ mkdir” statement is indented with a tab if that isn’t clear with this formatting.

    Suggestions would be appreciated.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Skip to toolbar