2006-03-05 17:14:31 +01:00
|
|
|
## Build and install stuff
|
|
|
|
|
|
|
|
EMACS = emacs
|
|
|
|
|
|
|
|
ELC = git.elc vc-git.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
|
|
|
|
$(EMACS) --batch --eval '(byte-compile-file "$<")'
|
|
|
|
|
|
|
|
clean:; rm -f $(ELC)
|