-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 687 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (20 loc) · 687 Bytes
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
# This is not a full-featured Makefile and it is not intended to be used
# to install emms-state package to your system. Its only purpose is to
# byte-compile "emms-state.el" (using 'make') to make sure that there are
# no compilation warnings.
EMACS = emacs
TOP := $(dir $(lastword $(MAKEFILE_LIST)))
ELPA_DIR = $(HOME)/config/emacs/data/elpa
LOAD_PATH = -L $(TOP)
LOAD_PATH += $(shell \
find $(ELPA_DIR) -mindepth 1 -maxdepth 1 -type d | \
xargs -I === echo "-L ===")
EMACS_BATCH = $(EMACS) -batch -Q $(LOAD_PATH)
ELS = emms-state.el
ELCS = $(ELS:.el=.elc)
all: $(ELCS)
%.elc: %.el
@printf "Compiling $<\n"
@$(EMACS_BATCH) -f batch-byte-compile $<
clean:
$(RM) $(ELCS)