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
|
|
|
|
|
|
|
|
all: $(ELC)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
$(INSTALL) -d $(emacsdir)
|
|
|
|
$(INSTALL_ELC) $(ELC) $(emacsdir)
|
|
|
|
|
|
|
|
%.elc: %.el
|
2007-03-05 09:23:42 +01:00
|
|
|
$(EMACS) -batch -f batch-byte-compile $<
|
2006-03-05 17:14:31 +01:00
|
|
|
|
|
|
|
clean:; rm -f $(ELC)
|