26 lines
657 B
Makefile
26 lines
657 B
Makefile
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)
|