-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
42 lines (34 loc) · 996 Bytes
/
Makefile
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
35
36
37
38
39
40
41
42
# This is not a full-featured Makefile and it is not intended to be used
# to install "alect-themes" package to your system. Its purposes are:
#
# - to byte-compile *.el files (using 'make'): to make sure that there
# are no compilation warnings;
#
# - to run the tests (using 'make check').
EMACS = emacs
TOP := $(dir $(lastword $(MAKEFILE_LIST)))
LOAD_PATH = -L $(TOP)
EMACS_BATCH = $(EMACS) -batch -Q $(LOAD_PATH)
ELS = \
alect-themes.el \
alect-light-theme.el \
alect-light-alt-theme.el \
alect-dark-theme.el \
alect-dark-alt-theme.el \
alect-black-theme.el \
alect-black-alt-theme.el \
ELCS = $(ELS:.el=.elc)
all: $(ELCS)
%.elc: %.el
@printf "Compiling $<\n"
@$(EMACS_BATCH) --eval "\
(when (file-exists-p \"$@\")\
(delete-file \"$@\"))" \
-f batch-byte-compile $<
check:
@$(EMACS_BATCH) --eval "(progn\
(load-file \"tests/alect-tests.el\")\
(ert-run-tests-batch-and-exit))"
clean:
@printf "Removing *.elc...\n"
@$(RM) $(ELCS)