จากเอกสารของ GNU Make
5.3.1 Choosing the Shell
------------------------
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.
ดังนั้นใส่SHELL := /bin/bashที่ด้านบนของ makefile ของคุณและคุณควรจะไปดี
BTW: คุณสามารถทำสิ่งนี้เพื่อเป้าหมายเดียวอย่างน้อยก็สำหรับ GNU Make แต่ละเป้าหมายสามารถมีการกำหนดตัวแปรของตนเองเช่นนี้:
all: a b
a:
    @echo "a is $$0"
b: SHELL:=/bin/bash   # HERE: this is setting the shell for b only
b:
    @echo "b is $$0"
จะพิมพ์:
a is /bin/sh
b is /bin/bash
ดู "ค่าตัวแปรเฉพาะเป้าหมาย" ในเอกสารประกอบสำหรับรายละเอียดเพิ่มเติม บรรทัดนั้นสามารถไปที่ใดก็ได้ใน Makefile โดยไม่จำเป็นต้องอยู่หน้าเป้าหมายทันที
               
              
/bin/sh: -c: line 0: syntax error near unexpected token('`