Add color to the Makefile
This commit is contained in:
parent
c5de9ef379
commit
99052b606c
2 changed files with 6 additions and 3 deletions
|
@ -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)\")"
|
||||
|
|
|
@ -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/\")"
|
||||
|
|
Loading…
Reference in a new issue