blob: 23330e5c893d8d45ad38b3a42614caa906809da6 (
plain)
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
LOAD_PATH ?=
BATCH = $(EMACS) -Q --batch $(LOAD_PATH)
all: bog.elc bog-autoloads.el
.PHONY: test
test: bog.elc bog-tests.elc
@$(BATCH) -L . -l bog-tests.elc \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
.PHONY: clean
clean:
$(RM) bog.elc bog-autoloads.el bog-tests.elc
%.elc: %.el
@$(BATCH) -L . -f batch-byte-compile $<
bog-autoloads.el: bog.el
@$(BATCH) -L . --eval \
"(let* ((default-directory (file-name-as-directory \"$(CURDIR)\")) \
(target (expand-file-name \"$@\")) \
(excludes (list \"bog-tests.el\")) \
(make-backup-files nil)) \
(if (fboundp (quote loaddefs-generate)) \
(loaddefs-generate default-directory target excludes) \
(update-file-autoloads \"$<\" t target)))"
|