2006-03-05 16:14:31 +00:00
|
|
|
## Build and install stuff
|
|
|
|
|
|
|
|
EMACS = emacs
|
|
|
|
|
2009-02-07 13:24:54 +00:00
|
|
|
ELC = git.elc git-blame.elc
|
2006-06-29 20:11:25 +00:00
|
|
|
INSTALL ?= install
|
2006-03-05 16:14:31 +00:00
|
|
|
INSTALL_ELC = $(INSTALL) -m 644
|
2006-06-29 20:11:25 +00:00
|
|
|
prefix ?= $(HOME)
|
2006-03-05 16:14:31 +00:00
|
|
|
emacsdir = $(prefix)/share/emacs/site-lisp
|
2007-07-14 17:51:44 +00:00
|
|
|
RM ?= rm -f
|
2006-03-05 16:14:31 +00:00
|
|
|
|
|
|
|
all: $(ELC)
|
|
|
|
|
|
|
|
install: all
|
2007-04-05 18:09:31 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(emacsdir)
|
2007-07-15 09:46:11 +00:00
|
|
|
$(INSTALL_ELC) $(ELC:.elc=.el) $(ELC) $(DESTDIR)$(emacsdir)
|
2006-03-05 16:14:31 +00:00
|
|
|
|
|
|
|
%.elc: %.el
|
2007-03-05 08:23:42 +00:00
|
|
|
$(EMACS) -batch -f batch-byte-compile $<
|
2006-03-05 16:14:31 +00:00
|
|
|
|
2007-07-14 17:51:44 +00:00
|
|
|
clean:; $(RM) $(ELC)
|