Makefile 457 Bytes
Newer Older
Lev Lamberov's avatar
Lev Lamberov committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
EMACS ?= emacs
BATCH := $(EMACS) $(EFLAGS) -batch -q -no-site-file -L .

all: linum-relative.elc

README.md: make-readme-markdown.el
	emacs --script $< <linum-relative.el>$@ 2>/dev/null
make-readme-markdown.el:
	wget -q -O $@ https://raw.github.com/mgalgs/make-readme-markdown/master/make-readme-markdown.el
.INTERMEDIATE: make-readme-markdown.el

clean:
	$(RM) *.elc

%.elc: %.el
	$(BATCH) --eval '(byte-compile-file "$<")'


.PHONY: check clean README.md