Search code examples
makefile

make command is not detecting make file in windows10


I am using windows 10. I have installed make. I have created make file as "Makefile.mak" and kept in that directory. But when i am use make command it is giving: "make:*** No targets specified and no makefile found. Stop." error


Solution

  • Make doesn't read Makefile.mak files. It reads Makefile files. If you want to use some other name, you need to tell make what the name is:

    make -f Makefile.mak
    

    See https://www.gnu.org/software/make/manual/html_node/Makefile-Arguments.html