1
0
Fork 0
emacs-config/GNUmakefile

65 lines
2 KiB
Text
Raw Normal View History

2019-03-28 08:53:55 +01:00
FILES := $(wildcard *.el)
PACKAGE_TARGETS := $(addprefix package-,$(FILES))
2019-08-24 08:42:58 +02:00
package: $(PACKAGE_TARGETS) package-oni-conf package-oni-css
2019-03-28 08:53:55 +01:00
package-%: %
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval '(package-upload-file "$^")'
package-oni-conf:
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval "(package-upload-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))"
2019-08-24 08:39:07 +02: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>)))"
install-%:
2019-03-28 08:53:55 +01:00
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval '(package-refresh-contents)' \
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\")" \
2019-08-24 08:00:14 +02: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\")") \
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-conf/dist/*.tar\") #'string>)))" \
2019-08-24 08:39:07 +02: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\")") \
--eval "(package-install-file (car (sort (file-expand-wildcards \"oni-css/dist/*.tar\") #'string>)))" \
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 08:53:55 +01:00
--funcall ert-run-tests-batch-and-exit
test-oni-bookmark: DEPS := oni-data-dir
2019-08-24 08:00:43 +02:00
test-oni-conf: DEPS := oni-yasnippet
2019-08-24 08:39:07 +02:00
test-oni-css: DEPS := oni-company oni-fci
test-oni-php: DEPS := oni-flycheck oni-company oni-fci
2019-03-28 08:53:55 +01:00
clean:
rm -fv $(FILES)