From 99052b606c316b802551335298df13cc4a55b8fc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 18 Sep 2016 00:04:54 +0200 Subject: [PATCH] Add color to the Makefile --- dotfiles.mk | 3 ++- emacs/.emacs.d/GNUmakefile | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dotfiles.mk b/dotfiles.mk index c9ff16b..c1bc161 100644 --- a/dotfiles.mk +++ b/dotfiles.mk @@ -1,7 +1,8 @@ EMACS = /usr/bin/emacs define tangle = - $(EMACS) -batch \ + @echo -e "\e[35mOBT\e[0m" $< + @$(EMACS) -batch \ -eval "(package-initialize)"\ -load ob-tangle \ -eval "(org-babel-tangle-file \"\$<\" \"$(notdir $@)\" \"$(1)\")" diff --git a/emacs/.emacs.d/GNUmakefile b/emacs/.emacs.d/GNUmakefile index 71187dc..29ea17e 100644 --- a/emacs/.emacs.d/GNUmakefile +++ b/emacs/.emacs.d/GNUmakefile @@ -10,13 +10,15 @@ all: init.elc $(AUTOLOADS_FILE) $(SITE_LISPS) $(call tangle,emacs-lisp) %.elc: %.el - $(EMACS) -batch \ + @echo -e "\e[31mELC\e[0m $<" + @$(EMACS) -batch \ -eval "(package-initialize)" \ -eval "(byte-compile-file \"$<\")" ### Site Lisp $(AUTOLOADS_FILE): $(SITE_LISPS) - $(EMACS) -batch \ + @echo -e "\e[32mGEN\e[0m $@" + @$(EMACS) -batch \ -eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \ -eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")"