Skip to content

Commit

Permalink
contrib/emacs/Makefile: Provide tool for byte-compiling files.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Mark Wooding authored and Junio C Hamano committed Mar 5, 2006
1 parent 0aee3d6 commit 8911db7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/emacs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.elc
20 changes: 20 additions & 0 deletions contrib/emacs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Build and install stuff

EMACS = emacs

ELC = git.elc vc-git.elc
INSTALL = install
INSTALL_ELC = $(INSTALL) -m 644
prefix = $(HOME)
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)

0 comments on commit 8911db7

Please sign in to comment.