aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-09-21 21:14:59 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-09-21 21:14:59 -0700
commit149056033a6dc5deb0adc42f591517dcbe2d8a47 (patch)
treea4556a097ef3952542f41065931741bb8f468ad0 /Makefile
parentca626182c1ba6573a81f55f5257fea9cb6800fb8 (diff)
Added support for default shell other than sh (e.g. dash, in case sh
links to bash)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ccc8cec..f834406 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,10 @@ ifeq ($(shell uname),Darwin)
-Wno-missing-noreturn -Wno-cast-qual
endif
+ifneq (, $(SH))
+ CFLAGS += -D'SH="$(SH)"'
+endif
+
PICKER_FLAG=
ifeq (, $(PICKER))
PICKER=$(shell sh -c "(which fzy >/dev/null 2>/dev/null && echo 'fzy') || (which fzf >/dev/null 2>/dev/null && echo 'fzf') || (which pick >/dev/null 2>/dev/null && echo 'pick') || (which ask >/dev/null 2>/dev/null && echo 'ask')")