Menu

[Build Error] No rule to make target `all'.

Blasz
2010-06-26
2012-09-26
  • Blasz

    Blasz - 2010-06-26

    I know it must be annoying for the forum regulars to answer what appears to be
    a common question, but when I search this topic, its extremely time consuming
    to find the answer as when you search each reply comes up as a separate
    thread.

    Anyway, first time using dev-c++ and I wanted to compile something which
    compiled on lcc-win32.

    I set up the project and then click compile and this is my compiler log.

    Compiler: Default compiler
    Building Makefile: "C:\enemy_click\Makefile.win"
    Executing make...
    make.exe -f "C:\enemy_click\Makefile.win" all
    make.exe: *** No rule to make target `all'. Stop.

    Execution terminated

    Any help, much appreciated.

    Thanks.

     
  • cpns

    cpns - 2010-06-26

    its extremely time consuming to find the answer

    The important difference however is that it is your time being consumed, not
    someone else's. Tour faint apology reings hollow since what you are actually
    saying is "I don't want to waste my time so I'll waste yours". That is
    unfortunate because in fact your question is otherwise not unreasonable, and
    you could have just asked it without the preamble.

    One thing you could have looked at is the "read first" thread which requests
    that you post the Dev-C++ version you are using.

    Whatever the problem it it appears to be in the generated makefile.win file
    which appears to be malformed. It may be possible to determine what has
    happened if you post the content of that. However you appear to be attempting
    to directly compile a single source file without using a project. I strongly
    suggest that you do use a project, even for single source file builds,
    otherwise your code will be built with whatever the prevailing Dev-C++
    settings are rather that the ones you need for that specific code. Apart from
    anything else, using a project file will force the regeneration of the
    makefile.

    Something else that you might try is simply deleting makefile.win to force it
    to be regenerated.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.