build: Set SHELL make variable to bash if possible
commit11c34c86ca4a0a355276d675eb46ae084ab7f7e8
authorTobias Klauser <tklauser@distanz.ch>
Mon, 24 Feb 2014 12:52:08 +0000 (24 13:52 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 24 Feb 2014 12:55:37 +0000 (24 13:55 +0100)
tree589a60da367b2ba2458aac79955057e9c5425334
parented28a9fba251450b3a15a95f4dcaa8ca4fd4d7be
build: Set SHELL make variable to bash if possible

On Debian/Ubuntu systems, /bin/sh is /bin/dash which doesn't understand
the -e option to the `echo' builtin. Thus the build output looks
something like the following:

Building netsniff-ng toolkit (0.5.8-rc5+) for x86_64-linux-gnu:
Building netsniff-ng:
-e   CC dissector.c
-e   CC dissector_eth.c
-e   CC dissector_80211.c
...

Prevent this by setting SHELL to /bin/bash if it exists on the system,
otherwise stick to /bin/sh.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Cmds