blob: c33f85687c99ed5b1d6b58b23e543a924cd1185d (
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
|
FILES := $(wildcard *.el)
PACKAGE_TARGETS := $(addprefix package-,$(FILES))
package: $(PACKAGE_TARGETS)
package-%: %
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval '(package-upload-file "$^")'
test-%:
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval '(package-refresh-contents)' \
--load ert \
--load "test/$*-test.el" \
--funcall package-initialize \
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
--eval "(package-install-file \"$*.el\")" \
--funcall ert-run-tests-batch-and-exit
clean:
rm -fv $(FILES)
|