blob: fbcd9429b38aa87d588aa540685cbb819f6632b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
EMACS ?= emacs
LOAD_PATH ?=
BATCH = $(EMACS) -Q --batch $(LOAD_PATH)
all: bog.elc bog-autoloads.el
.PHONY: test
test: bog.elc
@$(BATCH) -L . -l bog-tests.el \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
.PHONY: clean
clean:
$(RM) bog.elc bog-autoloads.el
%.elc: %.el
@$(BATCH) -L . -f batch-byte-compile $<
bog-autoloads.el: bog.el
@$(BATCH) -L . --eval \
"(let (make-backup-files) \
(update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\"))"
|