diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-02-24 13:52:08 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-02-24 13:55:37 +0100 |
commit | 11c34c86ca4a0a355276d675eb46ae084ab7f7e8 (patch) | |
tree | 589a60da367b2ba2458aac79955057e9c5425334 /Cmds | |
parent | ed28a9fba251450b3a15a95f4dcaa8ca4fd4d7be (diff) |
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>
Diffstat (limited to 'Cmds')
-rw-r--r-- | Cmds | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,9 @@ # Be quite and do not echo the cmd Q = @ +# Try to use bash as shell for make +SHELL := $(shell if [ -x /bin/bash ]; then echo /bin/bash; else echo /bin/sh; fi ; fi) + # GCC related stuff LD = $(Q)echo -e " LD\t$@" && $(CCACHE) $(CROSS_COMPILE)gcc CCNQ = $(CCACHE) $(CROSS_COMPILE)gcc |