aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-03-13 18:49:40 +0100
committerJonas Bernoulli <jonas@bernoul.li>2023-03-13 18:49:40 +0100
commit9b6ae49dd160fee91a158629ffba62ab25c48665 (patch)
tree1bdcc6f3b1a53286d10ef8214f6c8570edd1e898 /test/Makefile
parent26a705fffe4c6297cdbd546f2ece942d8b5d8535 (diff)
test: Compile magit-tests.el
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index c921c55..439eef0 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -12,3 +12,14 @@ test-interactive:
@$(EMACS) -Q $(LOAD_PATH) --eval "(progn\
(load-file \"$(TOP)test/magit-tests.el\")\
(ert t))"
+
+lisp: magit-tests.elc
+
+%.elc: %.el
+ @printf "Compiling $<\n"
+ @$(BATCH) --eval "(progn\
+ (when (file-exists-p \"$@\")\
+ (delete-file \"$@\"))\
+ (setq with-editor-emacsclient-executable nil)\
+ $$suppress_warnings)" \
+ -f batch-byte-compile $<