From: Mark Wooding Date: Sun, 13 Aug 2017 03:50:44 +0000 (+0100) Subject: Makefile: Byte-compile Emacs Lisp files silently. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/831989521f8a2db990fa25e2aa005f0c9ff6017b?ds=sidebyside Makefile: Byte-compile Emacs Lisp files silently. Unless they fail, in which case print the captured log. --- 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)))