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