Makefile: Byte-compile Emacs Lisp files silently.
[profile] / Makefile
index 9d7b8a1..8c0aa48 100644 (file)
--- 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)))