1
0
Fork 0
emacs-config/GNUmakefile

27 lines
640 B
Text
Raw Normal View History

2019-03-28 08:53:55 +01:00
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 \
--eval "(package-install-file \"oni-data-dir.el\")" \
--eval "(package-install-file \"$*.el\")" \
--funcall ert-run-tests-batch-and-exit
clean:
rm -fv $(FILES)