https://github.com/git/git
Raw File
Tip revision: aaa7e0d7f8f003c0c8ab34f959083f6d191d44ca authored by Junio C Hamano on 13 May 2015, 21:11:43 UTC
Git 2.4.1
Tip revision: aaa7e0d
Makefile
## Build and install stuff

EMACS = emacs

ELC = git.elc git-blame.elc
INSTALL ?= install
INSTALL_ELC = $(INSTALL) -m 644
prefix ?= $(HOME)
emacsdir = $(prefix)/share/emacs/site-lisp
RM ?= rm -f

all: $(ELC)

install: all
	$(INSTALL) -d $(DESTDIR)$(emacsdir)
	$(INSTALL_ELC) $(ELC:.elc=.el) $(ELC) $(DESTDIR)$(emacsdir)

%.elc: %.el
	$(EMACS) -batch -f batch-byte-compile $<

clean:; $(RM) $(ELC)
back to top