Can you make valid Makefiles without tab characters?

前端 未结 10 2599
孤城傲影
孤城傲影 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:38

    in ubuntu: vi Makefiles replace space by tab (or anything else you want):

    :%s//^I/g
    

    For ex replace 8 spaces by tab:

    :%s/        /^I/g
    

    Be attention: ^I insert with tab key, not ^ and I characters :D

提交回复
热议问题