Skip to content

Commit 650359c

Browse files
committed
Add Makefile
1 parent c7832a8 commit 650359c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
EMACS ?= emacs
2+
ELS = mldoc.el
3+
AUTOLOADS = mldoc-autoloads.el
4+
ELCS = $(ELS:.el=.elc)
5+
6+
%.elc: %.el
7+
$(EMACS) -Q -batch -L . -f batch-byte-compile $<
8+
9+
all: autoloads $(ELCS)
10+
11+
autoloads: $(AUTOLOADS)
12+
13+
$(AUTOLOADS): $(ELS)
14+
$(EMACS) -Q -batch -L . --eval \
15+
"(progn \
16+
(require 'package) \
17+
(package-generate-autoloads \"mldoc\" default-directory))"
18+
19+
clean:
20+
rm -f $(ELCS) $(AUTOLOADS)
21+
22+
test: clean all
23+
$(EMACS) -Q -batch -L . -l mldoc-test.el -f ert-run-tests-batch-and-exit

0 commit comments

Comments
 (0)