Merge branch 'maint-1.6.1' into maint
[git.git] / contrib / emacs / Makefile
1 ## Build and install stuff
2
3 EMACS = emacs
4
5 ELC = git.elc git-blame.elc
6 INSTALL ?= install
7 INSTALL_ELC = $(INSTALL) -m 644
8 prefix ?= $(HOME)
9 emacsdir = $(prefix)/share/emacs/site-lisp
10 RM ?= rm -f
11
12 all: $(ELC)
13
14 install: all
15         $(INSTALL) -d $(DESTDIR)$(emacsdir)
16         $(INSTALL_ELC) $(ELC:.elc=.el) $(ELC) $(DESTDIR)$(emacsdir)
17
18 %.elc: %.el
19         $(EMACS) -batch -f batch-byte-compile $<
20
21 clean:; $(RM) $(ELC)