Merge branch 'js/read-tree' into js/c-merge-recursive
[git] / contrib / emacs / Makefile
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)