blob: b5da51514884cef600444c9d03bcaefcaa8f313e (
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
29
30
31
32
33
34
35
36
|
-include config.mk
COMPAT_DIR ?= /dev/null
DASH_DIR ?= /dev/null
WITH_EDITOR_DIR ?= /dev/null
TRANSIENT_DIR ?= /dev/null
MAGIT_DIR ?= /dev/null
EMACS ?= emacs
LOAD_PATH = -L $(COMPAT_DIR) -L $(DASH_DIR) -L $(WITH_EDITOR_DIR) \
-L $(TRANSIENT_DIR) -L $(MAGIT_DIR)
BATCH = $(EMACS) -Q --batch $(LOAD_PATH)
all: annexview.elc annexview-autoloads.el
.PHONY: test
test: annexview.elc
@$(BATCH) -L . -l annexview-tests.el \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
.PHONY: clean
clean:
$(RM) *.elc annexview-autoloads.el
%.elc: %.el
@$(BATCH) -f batch-byte-compile $<
%-autoloads.el: %.el
@$(BATCH) --eval \
"(let ((make-backup-files nil)) \
(if (fboundp 'loaddefs-generate) \
(loaddefs-generate default-directory \"$@\" \
(list \"annexview-tests.el\")) \
(update-file-autoloads \"$(CURDIR)/$<\" t \"$(CURDIR)/$@\")))"
|