2019-03-28 08:53:55 +01:00
|
|
|
FILES := $(wildcard *.el)
|
|
|
|
|
|
|
|
PACKAGE_TARGETS := $(addprefix package-,$(FILES))
|
|
|
|
|
2019-08-20 09:21:12 +02:00
|
|
|
package: $(PACKAGE_TARGETS) package-oni-conf
|
2019-03-28 08:53:55 +01:00
|
|
|
|
|
|
|
package-%: %
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-upload-file "$^")'
|
|
|
|
|
2019-08-20 09:21:12 +02:00
|
|
|
package-oni-conf:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-upload-file (car (file-expand-wildcards "oni-conf/dist/*.tar")))'
|
|
|
|
|
2019-03-28 08:53:55 +01:00
|
|
|
test-%:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-refresh-contents)' \
|
|
|
|
--load ert \
|
|
|
|
--load "test/$*-test.el" \
|
|
|
|
--funcall package-initialize \
|
2019-03-29 04:19:07 +01:00
|
|
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
2019-03-28 08:53:55 +01:00
|
|
|
--eval "(package-install-file \"$*.el\")" \
|
|
|
|
--funcall ert-run-tests-batch-and-exit
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fv $(FILES)
|