Add color to the Makefile

This commit is contained in:
Tom Willemse 2016-09-18 00:04:54 +02:00
parent c5de9ef379
commit 99052b606c
2 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,8 @@
EMACS = /usr/bin/emacs EMACS = /usr/bin/emacs
define tangle = define tangle =
$(EMACS) -batch \ @echo -e "\e[35mOBT\e[0m" $<
@$(EMACS) -batch \
-eval "(package-initialize)"\ -eval "(package-initialize)"\
-load ob-tangle \ -load ob-tangle \
-eval "(org-babel-tangle-file \"\$<\" \"$(notdir $@)\" \"$(1)\")" -eval "(org-babel-tangle-file \"\$<\" \"$(notdir $@)\" \"$(1)\")"

View file

@ -10,13 +10,15 @@ all: init.elc $(AUTOLOADS_FILE) $(SITE_LISPS)
$(call tangle,emacs-lisp) $(call tangle,emacs-lisp)
%.elc: %.el %.elc: %.el
$(EMACS) -batch \ @echo -e "\e[31mELC\e[0m $<"
@$(EMACS) -batch \
-eval "(package-initialize)" \ -eval "(package-initialize)" \
-eval "(byte-compile-file \"$<\")" -eval "(byte-compile-file \"$<\")"
### Site Lisp ### Site Lisp
$(AUTOLOADS_FILE): $(SITE_LISPS) $(AUTOLOADS_FILE): $(SITE_LISPS)
$(EMACS) -batch \ @echo -e "\e[32mGEN\e[0m $@"
@$(EMACS) -batch \
-eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \ -eval "(setq generated-autoload-file \"$(CURDIR)/$@\")" \
-eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")" -eval "(update-directory-autoloads \"$(CURDIR)/site-lisp/\")"