contrib/emacs/Makefile: Provide tool for byte-compiling files.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Mark Wooding committed
Mar 5, 2006 at 16:14 UTC
8911db70f8b84b2e96b328eeca9e5d7701c22479
2 files changed
+21
contrib/emacs/.gitignore
new
+1
@@ -0,0 +1 @@
1
+*.elc
contrib/emacs/Makefile
new
+20
@@ -0,0 +1,20 @@
1
+## Build and install stuff
2
+
3
+EMACS = emacs
4
+
5
+ELC = git.elc vc-git.elc
6
+INSTALL = install
7
+INSTALL_ELC = $(INSTALL) -m 644
8
+prefix = $(HOME)
9
+emacsdir = $(prefix)/share/emacs/site-lisp
10
+
11
+all: $(ELC)
12
+
13
+install: all
14
+ $(INSTALL) -d $(emacsdir)
15
+ $(INSTALL_ELC) $(ELC) $(emacsdir)
16
+
17
+%.elc: %.el
18
+ $(EMACS) --batch --eval '(byte-compile-file "$<")'
19
+
20
+clean:; rm -f $(ELC)