Add color to Emacs Makefile

This commit is contained in:
Tom Willemse 2016-02-08 00:59:02 +01:00
parent 8d90ed3444
commit a7d9aa0191

View file

@ -12,11 +12,11 @@ all: init2.elc init.elc $(AUTOLOADS_FILE) $(SITE_LISPS) snippets
### Init
%.elc: %.el
@echo "ELC $<"
@echo -e "\e[31mELC\e[0m $<"
@$(EMACS) $(EARGS) -eval "(byte-compile-file \"$<\")"
define tangle=
@echo "OBT $<"
@echo -e "\e[35mOBT\e[0m $<"
@$(EMACS) $(EARGS) -l "ob-tangle" \
-eval "(org-babel-tangle-file \"$<\")"
endef
@ -31,7 +31,7 @@ site-lisp/%-init.el: init-%.org
### Site Lisp
$(AUTOLOADS_FILE): $(SITE_LISPS)
@echo "GEN $@"
@echo -e "\e[32mGEN\e[0m $@"
@$(EMACS) $(EARGS) \
-eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \
-eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")"
@ -42,7 +42,7 @@ SNIPPET_DIRS = $(wildcard snippets/*)
COMPILED_SNIPPETS = $(addsuffix /.yas-compiled-snippets.el, $(SNIPPET_DIRS))
%/.yas-compiled-snippets.el: %/*
@echo "YAS $(CURDIR)/snippets"
@echo -e "\e[36mYAS\e[0m $(CURDIR)/snippets"
@$(EMACS) $(EARGS) -l yasnippet \
-eval "(yas-compile-directory \"$(CURDIR)/snippets\")"