diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..3f364b8 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,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 \ + --eval "(package-install-file \"oni-data-dir.el\")" \ + --eval "(package-install-file \"$*.el\")" \ + --funcall ert-run-tests-batch-and-exit + +clean: + rm -fv $(FILES) |