t4200: use cut instead of sed
[git/peff.git] / contrib / emacs / Makefile
bloba48540a92b4aa5140a87469b36c1f9b3d8e46e7f
1 ## Build and install stuff
3 EMACS = emacs
5 ELC = git.elc vc-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)