emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 02/03: Compile chess-perft and dependencies to speed up ert tests


From: Mario Lang
Subject: [elpa] 02/03: Compile chess-perft and dependencies to speed up ert tests.
Date: Tue, 03 Jun 2014 09:38:07 +0000

mlang pushed a commit to branch externals/chess
in repository elpa.

commit 4d85c83a42e7887a47923b971ba3d32fb2467bdc
Author: Mario Lang <address@hidden>
Date:   Tue Jun 3 11:34:37 2014 +0200

    Compile chess-perft and dependencies to speed up ert tests.
---
 Makefile |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index f27ef4a..d2661eb 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ INSTALL_INFO = install-info
 
 all: chess-eco.fen chess.info dir
 
-test:
+test: chess-perft.elc
        $(EMACS) -L . -l chess-perft -f ert-run-tests-batch
 
 chess-eco.fen: chess-eco.pos
@@ -24,3 +24,14 @@ chess.info: doc/chess.texi
 dir: chess.info
        $(INSTALL_INFO) $< $@
 
+chess-perft.elc: chess-fen.elc chess-ply.elc chess-pos.elc
+chess-ply.elc: chess-algebraic.elc
+
+.el.elc:
+       @$(EMACS) --batch -L . \
+       --eval "(defun byte-compile-dest-file (f) \"address@hidden")" \
+       --eval "(unless (byte-compile-file \"$<\") (kill-emacs 1))"
+
+
+clean:
+       rm -f *.elc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]