add emms
[emacs.git] / .emacs.d / elisp / emms / lisp / Makefile
1 EMACS=emacs
2 SITEFLAG=--no-site-file
3 ALLSOURCE=$(wildcard *.el)
4 ALLCOMPILED=$(wildcard *.elc)
5 SPECIAL=emms-auto.el emms-maint.el
6 SOURCE=$(filter-out $(SPECIAL),$(ALLSOURCE))
7 TARGET=$(patsubst %.el,%.elc,$(SOURCE))
8
9 .PHONY: all clean
10 .PRECIOUS: %.elc
11 all: emms-auto.el $(TARGET)
12
13 emms-auto.el: emms-auto.in $(SOURCE)
14 cp emms-auto.in emms-auto.el
15 -rm -f emms-auto.elc
16 @$(EMACS) -q $(SITEFLAG) -batch \
17 -l emms-maint.el \
18 -l emms-auto.el \
19 -f emms-generate-autoloads \
20 $(shell pwd)/emms-auto.el .
21
22 %.elc: %.el
23 @$(EMACS) -q $(SITEFLAG) -batch \
24 -l emms-maint.el \
25 -f batch-byte-compile $<
26
27 clean:
28 -rm -f *~ *.elc emms-auto.el