How to use shell builtin function from a Makefile?

后端 未结 5 1489
一个人的身影
一个人的身影 2020-12-16 22:02

I just stumbled on this problem. I tried to write a very basic Makefile target:

core: myprogram
        ulimit -c 10000
        ./myprogram
             


        
5条回答
  •  一生所求
    2020-12-16 22:44

    Short answer: add a semicolon (;) on the end of the command. In this way you will invoke FULL shell with builtin tools.

            ulimit -c 10000;
    

    instead of

            ulimit -c 10000
    

提交回复
热议问题