]> Pileus Git - ~andy/git/commitdiff
contrib/emacs: Use non-interactive function to byte-compile files
authorXavier Maillard <zedek@gnu.org>
Mon, 5 Mar 2007 08:23:42 +0000 (09:23 +0100)
committerJunio C Hamano <junkio@cox.net>
Mon, 5 Mar 2007 08:45:57 +0000 (00:45 -0800)
Add git-blame as a candidate to the byte-compilation.

batch-byte-compile is the prefered way to byte-compile files in
batch mode. Use it instead of the interactive function.

Signed-off-by: Xavier Maillard <zedek@gnu.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/Makefile

index 350846de904b31fb9dd86fee0c64613a7632c6aa..8554e3967cc692c6916e5aee35952074d07e8bf0 100644 (file)
@@ -2,7 +2,7 @@
 
 EMACS = emacs
 
-ELC = git.elc vc-git.elc
+ELC = git.elc vc-git.elc git-blame.elc
 INSTALL ?= install
 INSTALL_ELC = $(INSTALL) -m 644
 prefix ?= $(HOME)
@@ -15,6 +15,6 @@ install: all
        $(INSTALL_ELC) $(ELC) $(emacsdir)
 
 %.elc: %.el
-       $(EMACS) --batch --eval '(byte-compile-file "$<")'
+       $(EMACS) -batch -f batch-byte-compile $<
 
 clean:; rm -f $(ELC)