Makefile error make (e=2): The system cannot find the file specified

前端 未结 8 747
有刺的猬
有刺的猬 2020-12-09 09:20

I am using a makefile in windows to push some files on a Unix server (here a text file \"blob.txt\" in the same folder of my makefile). My makefile script is:



        
8条回答
  •  盖世英雄少女心
    2020-12-09 09:42

    I didn't want to remove GIT's bin folder from the PATH variable (I am using a Windows machine), as I use it quite often. So I looked for a workaround, and here it is:

    Add the /usr/bin directory to your PATH variable too. This basically adds the rest of the linux-like commands that come with the "GIT bash" to your environment. After applying this, my makefiles ran normally again. :)

    If you are curious about what shell is being invoked by make, just add $(info $(SHELL)) at the beginning of your makefile. The path/name of the shell being invoked is printed to the console as soon as you run make.

提交回复
热议问题