monnier pushed a commit to branch master in repository elpa. commit b17f9e34231cf4797b389d41659b299719d224b1 Author: Teemu Likonen <tliko...@iki.fi> Date: Wed Jun 5 17:10:35 2013 +0300
Makefile: add rules to make *.elc files (byte-compile) --- Makefile | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0ba30de..7168382 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,11 @@ MAIN := $(BASE).el PKG := $(BASE)-pkg.el FILES := $(MAIN) $(PKG) COPYING README NAME := $(BASE)-$(VERSION) +ELC := $(patsubst %.el,%.elc,$(wildcard *.el)) elpa: $(NAME).tar sign: $(NAME).tar.sig +elc: $(BASE).elc $(NAME).tar: $(FILES) tar --create --file $@ --transform 's,^,$(NAME)/,' $(FILES) @@ -25,10 +27,13 @@ $(PKG): README: README.md cp -f -- $< $@ +$(ELC): %.elc: %.el + emacs -Q --batch -f batch-byte-compile $< + tag: git tag -s $(VERSION) -m 'Version $(VERSION)' HEAD clean: - rm -f -- $(PKG) *.sig *.tar README + rm -f -- $(PKG) $(BASE)*.tar* README $(ELC) -.PHONY: elpa sign tag clean +.PHONY: elpa sign tag clean elc