Can you make valid Makefiles without tab characters?

前端 未结 10 2619
孤城傲影
孤城傲影 2020-12-02 07:17
target: dependencies
    command1
    command2

On my system (Mac OS X), make seems to require that that Makefiles have a tab character

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 07:42

    If you are using EditorConfig, you can add the following lines to your .editorconfig file to force your IDE to use tab for indentation instead of spaces in Makefile:

    [Makefile]
    indent_style = tab
    

提交回复
热议问题