summaryrefslogtreecommitdiff
path: root/Makefile
blob: e3d59870094dff44b3bbc675e3f22e1085916c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

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)/$@\"))"