minor Makefile changes

Changes #! lines in Makefiles to "#!/usr/bin/env make".

Set SHELL in Makefiles to the basename of the shell.
This commit is contained in:
Landon Curt Noll
2023-02-16 16:47:01 -08:00
parent 11ddc30528
commit 644b348bcb
10 changed files with 83 additions and 54 deletions

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env make
#
# cscript - makefile for calc shell script files
#
# Copyright (C) 1999-2006,2014,2017,2021,2022 Landon Curt Noll
# Copyright (C) 1999-2006,2014,2017,2021-2023 Landon Curt Noll
#
# SRC: cscript/Makefile
#
@@ -43,20 +44,21 @@
# If your system has a up to date, bash shell, then
# you may wish to use:
#
# SHELL= /bin/bash
# SHELL= bash
#
# On some systems such as macOS, the bash shell is very
# far behind to the point where is cannot be depended on.
# On such systems, the sh may be a much better alternative
# shell for this Makefile to use:
#
# SHELL= /bin/sh
# SHELL= sh
#
SHELL= /bin/bash
#SHELL= /bin/sh
SHELL= bash
#SHELL= sh
#if 0 /* start of skip for non-Gnu makefiles */
#
ifeq ($(target),Darwin)
SHELL:= /bin/zsh
SHELL:= /bin/sh
endif
#endif /* end of skip for non-Gnu makefiles */