How to use shell builtin function from a Makefile?

后端 未结 5 1486
一个人的身影
一个人的身影 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:56

    In the official GNU make document(http://www.gnu.org/software/make/manual/make.html) Chapter 5.3.2, it says "The program used as the shell is taken from the variable SHELL. If this variable is not set in your makefile, the program /bin/sh is used as the shell. " You can set SHELL to /bin/bash.

提交回复
热议问题