Target pattern contains no '%'. Makefile

后端 未结 7 2111
醉梦人生
醉梦人生 2020-12-10 10:48

I have searched this problem in google, but still don\'t have some way to resolve a problem. I have 2 Makefiles: One as example and one as my file. Example:

7条回答
  •  借酒劲吻你
    2020-12-10 11:20

    This won't work:

    default:
            echo "Hello world!"

    This will:

    default:
    	echo "Hello world!"

    Can you spot the difference?

    That's right, the first one has spaces, the second one has tabs. The one with spaces will give you:

    Makefile:2: *** missing separator. Stop.

    And this is why we cannot have nice things...

提交回复
热议问题