Makefile: Fix Emacs compilation so that it actually notices failures.
[profile] / Makefile
index f7ec50d..e650635 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@ SCRIPTLINKS         += aspell-hack emerge-hack wakey.sh
        $(call v_tag,EMACS)if ! $(EMACS) >$*.build-log 2>&1 \
                -L el/ -L $(EMACSLIB) \
                --batch --no-site-file \
-               --eval '(byte-compile-file "$<")'; then \
+               --eval '(kill-emacs (if (byte-compile-file "$<") 0 2))'; then \
          cat $*.build-log; exit 2; \
        fi