From 831989521f8a2db990fa25e2aa005f0c9ff6017b Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 13 Aug 2017 04:50:44 +0100 Subject: [PATCH] Makefile: Byte-compile Emacs Lisp files silently. Unless they fail, in which case print the captured log. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d7b8a1..8c0aa48 100644 --- a/Makefile +++ b/Makefile @@ -79,9 +79,12 @@ SCRIPTLINKS += emacsclient-hack movemail-hack sendmail-hack SCRIPTLINKS += aspell-hack emerge-hack %.elc: %.el $$(foreach e, $$($$*_DEPS), $$(DEP_$$e)) - $(call v_tag,EMACS)$(EMACS) -L el/ -L $(EMACSLIB) \ + $(call v_tag,EMACS)if ! $(EMACS) >$*.build-log 2>&1 \ + -L el/ -L $(EMACSLIB) \ --batch --no-site-file \ - --eval '(byte-compile-file "$<")' + --eval '(byte-compile-file "$<")'; then \ + cat $*.build-log; exit 2; \ + fi LOCAL_ELISP = $(filter $(notdir $(wildcard el/*.el)), \ $(addsuffix .el, $(ELISP))) -- 2.11.0