-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 873 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (24 loc) · 873 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
29
30
31
32
33
34
# This is not a full-featured Makefile and it is not intended to be used
# to install aurel package to your system. Its only purpose is to
# byte-compile "aurel.el" (using "make") to make sure that there are no
# compilation warnings. Moreover, it will not work on your system
# because of non-standard directories with dependencies.
EMACS = emacs
TOP := $(dir $(lastword $(MAKEFILE_LIST)))
BUI_DIR = $(HOME)/config/emacs/packages/bui
ELPA_DIR = $(HOME)/config/emacs/data/elpa
LOAD_PATH = -L $(TOP) -L $(BUI_DIR)
LOAD_PATH += $(shell \
find $(ELPA_DIR) -mindepth 1 -maxdepth 1 -type d | \
xargs -I === echo "-L ===")
EMACS_BATCH = $(EMACS) -batch -Q $(LOAD_PATH)
ELS = \
aurel.el
ELCS = $(ELS:.el=.elc)
all: $(ELCS)
%.elc: %.el
@printf "Compiling $<\n"
@$(EMACS_BATCH) -f batch-byte-compile $<
clean:
@printf "Removing *.elc...\n"
@$(RM) $(ELCS)