-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (40 loc) · 1.32 KB
/
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
43
44
45
46
47
48
49
50
51
EMACS ?= emacs
BATCH = $(EMACS) --batch -L .
ELENV = -l test/run-test
.PHONY: elpa build build-strict byte-compile init-load clean-elpa clean-elc simple-start
elpa:
mkdir -p elpa
$(BATCH) -l elisp/melpa.el -l site-start.d/00_init-package.el --eval \
'(my-install-package)'
build:
$(BATCH) -l test/run-test --eval \
'(batch-byte-compile)' site-start.d/*.el
init-load:
$(BATCH) -l test/run-test --eval '(load (concat default-directory "init.el"))'
build-strict:
-$(BATCH) -l test/run-test
-$(BATCH) -l test/run-test \
--eval '(byte-compile-disable-warning \'cl-functions)' \
--eval '(progn \
(message default-directory) \
(message (concat default-directory "test/run-test.el")) \
(load (locate-user-emacs-file "test/run-test.el")) \
(setq byte-compile-error-on-warn t) \
(batch-byte-compile))' ~/.emacs.d/site-start.d/*.el
byte-compile:
$(BATCH) -l test/run-test -l site-start.d/01_init-global.el --eval \
'(my-byte-compile-func)'
clean-config-elc:
rm -f init.elc
XARGS_NO_RUN=''
if [ `uname` = 'Linux' ]; then XARGS_NO_RUN='--no-run-if-empty'; fi
find site-start.d -name "*.elc" | xargs $(XARGS_NO_RUN) rm
clean-elc:
rm init.elc
find site-start.d -name "*.elc" | xargs rm
find elisp -name "*.elc" | xargs rm
find plugins -name "*.elc" | xargs rm
clean-elpa:
rm -r elpa
simple-start:
./test-startup.sh