Code

Merge branch 'maint-1.7.6' into maint
[git.git] / contrib / emacs / Makefile
1 ## Build and install stuff
3 EMACS = emacs
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
12 all: $(ELC)
14 install: all
15         $(INSTALL) -d $(DESTDIR)$(emacsdir)
16         $(INSTALL_ELC) $(ELC:.elc=.el) $(ELC) $(DESTDIR)$(emacsdir)
18 %.elc: %.el
19         $(EMACS) -batch -f batch-byte-compile $<
21 clean:; $(RM) $(ELC)