-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 701 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 701 Bytes
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
EMACS ?= emacs
EMACS_VERSION=$(shell $(EMACS) -batch -eval '(princ (format "%s.%s" emacs-major-version emacs-minor-version))')
EMACS_BATCH=cask exec $(EMACS) --batch -Q
AMPLE_REGEXPS_ELC=ample-regexps.$(EMACS_VERSION).elc
.PHONY: test-compiled test-uncompiled compile
dist:
cask package
compile:
$(EMACS_BATCH) -f batch-byte-compile ample-regexps.el && mv ample-regexps.elc $(AMPLE_REGEXPS_ELC)
$(AMPLE_REGEXPS_ELC): ample-regexps.el
make compile
test-uncompiled:
cask exec ert-runner -l ample-regexps.el
test-compiled: $(AMPLE_REGEXPS_ELC)
cask exec ert-runner -l $(AMPLE_REGEXPS_ELC)
test: test-uncompiled test-compiled
tryout:
cask exec $(EMACS) -Q -L . -l init-tryout.el test-arx.el