2019-03-28 00:53:55 -07:00
|
|
|
FILES := $(wildcard *.el)
|
|
|
|
|
|
|
|
PACKAGE_TARGETS := $(addprefix package-,$(FILES))
|
|
|
|
|
2019-08-25 13:37:25 -07:00
|
|
|
package: $(PACKAGE_TARGETS) package-oni-conf package-oni-css package-oni-elisp
|
2019-03-28 00:53:55 -07:00
|
|
|
|
|
|
|
package-%: %
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-upload-file "$^")'
|
|
|
|
|
2019-08-20 00:21:12 -07:00
|
|
|
package-oni-conf:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
2019-08-23 22:59:55 -07:00
|
|
|
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))"
|
2019-08-20 00:21:12 -07:00
|
|
|
|
2019-08-23 23:39:07 -07:00
|
|
|
package-oni-css:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-css/dist/*.tar\") #'string>)))"
|
|
|
|
|
2019-08-25 13:37:25 -07:00
|
|
|
package-oni-elisp:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-elisp/dist/*tar\") #'string>)))"
|
|
|
|
|
2019-08-22 23:47:45 -07:00
|
|
|
install-%:
|
2019-03-28 00:53:55 -07:00
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-refresh-contents)' \
|
2019-03-28 20:19:07 -07:00
|
|
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
2019-08-25 13:37:25 -07:00
|
|
|
--eval "(package-install-file \"$*.el\")"
|
2019-08-22 23:47:45 -07:00
|
|
|
|
2019-08-23 23:00:14 -07:00
|
|
|
install-oni-conf:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-refresh-contents)' \
|
|
|
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
2019-08-25 13:37:25 -07:00
|
|
|
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))"
|
2019-08-23 23:00:14 -07:00
|
|
|
|
2019-08-23 23:39:07 -07:00
|
|
|
install-oni-css:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-refresh-contents)' \
|
|
|
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
2019-08-25 13:37:25 -07:00
|
|
|
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-css/dist/*.tar\") #'string>)))"
|
|
|
|
|
|
|
|
install-oni-elisp:
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--eval '(package-refresh-contents)' \
|
|
|
|
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
|
|
|
|
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-elisp/dist/*.tar\") #'string>)))"
|
2019-08-23 23:39:07 -07:00
|
|
|
|
2019-08-22 23:47:45 -07:00
|
|
|
test-%: install-%
|
|
|
|
emacs --batch \
|
|
|
|
--load oni-package.el \
|
|
|
|
--funcall package-initialize \
|
|
|
|
--load ert \
|
|
|
|
--load "test/$*-test.el" \
|
|
|
|
--eval "(setq ert-batch-backtrace-right-margin nil)" \
|
2019-03-28 00:53:55 -07:00
|
|
|
--funcall ert-run-tests-batch-and-exit
|
|
|
|
|
2019-08-23 22:10:47 -07:00
|
|
|
test-oni-bookmark: DEPS := oni-data-dir
|
2019-08-23 23:00:43 -07:00
|
|
|
test-oni-conf: DEPS := oni-yasnippet
|
2019-08-23 23:39:07 -07:00
|
|
|
test-oni-css: DEPS := oni-company oni-fci
|
|
|
|
test-oni-php: DEPS := oni-flycheck oni-company oni-fci
|
2019-08-25 13:37:25 -07:00
|
|
|
test-oni-elisp: DEPS := oni-company oni-flycheck oni-paredit oni-fci \
|
|
|
|
oni-yasnippet
|
2019-08-23 22:10:47 -07:00
|
|
|
|
2019-03-28 00:53:55 -07:00
|
|
|
clean:
|
|
|
|
rm -fv $(FILES)
|