diff options
author | Tom Willemse | 2013-04-14 23:58:59 +0200 |
---|---|---|
committer | Tom Willemse | 2013-04-14 23:58:59 +0200 |
commit | fd184f196eb45952e2684b440c58a8b5aa4fd17c (patch) | |
tree | 149955612853bf5b2760418f8f7e9fb677f42eb7 /dotfiles.mk | |
parent | ea413a502373163f274bf3888563d2728cb1bf15 (diff) | |
download | dotfiles-fd184f196eb45952e2684b440c58a8b5aa4fd17c.tar.gz dotfiles-fd184f196eb45952e2684b440c58a8b5aa4fd17c.zip |
Don't show colors if they're not supported
Diffstat (limited to 'dotfiles.mk')
-rw-r--r-- | dotfiles.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dotfiles.mk b/dotfiles.mk index 0a51b92..4132992 100644 --- a/dotfiles.mk +++ b/dotfiles.mk @@ -2,11 +2,19 @@ LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp EMACS=emacs $(addprefix -L ,$(LOAD_PATH)) MODE=644 +ifeq ($(shell if [ "`tput colors`" -gt 0 ]; then echo -n "y"; fi),y) FG_BLU=\033[0;34m FG_YEL=\033[0;33m FG_GRE=\033[0;32m FG_RED=\033[0;31m CLR_RE=\033[0;00m +else +FG_BLU= +FG_YEL= +FG_GRE= +FG_RED= +CLR_RE= +endif compile = $(EMACS) -Q -batch -eval "(byte-compile-file \"$(1)\")" define newer = |