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