Makefile: Fix Emacs compilation so that it actually notices failures.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 17 Feb 2024 14:54:27 +0000 (14:54 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 17 Feb 2024 14:55:46 +0000 (14:55 +0000)
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