Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadar Levison <ladar@lavabit.com>2020-06-10 19:04:43 +0300
committerLadar Levison <ladar@lavabit.com>2020-06-10 19:04:43 +0300
commit50ed04294c722e5d74720fdca5cc3833b7052224 (patch)
treec2ec8fe337ecc37b5d4bb3dc52ec7b7e5f7c37ea
parentab938e700a59c61b33822b70fff6efcfd24f4e9a (diff)
Updated Makefile with a potential fix for builds without active terminals.
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 9cadd5d2..fe4e1d81 100644
--- a/Makefile
+++ b/Makefile
@@ -250,13 +250,13 @@ ifdef TERM
BOLD = $$(tput bold || true)
NORMAL = $$(tput sgr0 || true)
else
- RED = $$([[ -t 0 ]] && tput -Tvt100 setaf 1 || true)
- BLUE = $$([[ -t 0 ]] && tput -Tvt100 setaf 4 || true)
- GREEN = $$([[ -t 0 ]] && tput -Tvt100 setaf 2 || true)
- WHITE = $$([[ -t 0 ]] && tput -Tvt100 setaf 7 || true)
- YELLOW = $$([[ -t 0 ]] && tput -Tvt100 setaf 3 || true)
- BOLD = $$([[ -t 0 ]] && tput -Tvt100 bold || true)
- NORMAL = $$([[ -t 0 ]] && tput -Tvt100 sgr0 || true)
+ RED = $$(if [ -t 0 ]; then tput -Tvt100 setaf 1 ; else true ; fi)
+ BLUE = $$(if [ -t 0 ]; then tput -Tvt100 setaf 4 ; else true ; fi)
+ GREEN = $$(if [ -t 0 ]; then tput -Tvt100 setaf 2 ; else true ; fi)
+ WHITE = $$(if [ -t 0 ]; then tput -Tvt100 setaf 7 ; else true ; fi)
+ YELLOW = $$(if [ -t 0 ]; then tput -Tvt100 setaf 3 ; else true ; fi)
+ BOLD = $$(if [ -t 0 ]; then tput -Tvt100 bold ; else true ; fi)
+ NORMAL = $$(if [ -t 0 ]; then tput -Tvt100 sgr0 ; else true ; fi)
endif
# Calculate the version, commit and timestamp strings.