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