1
0
Fork 0
emacs-config/GNUmakefile

83 lines
1.9 KiB
Text
Raw Normal View History

2019-03-28 08:53:55 +01:00
FILES := $(wildcard *.el)
PACKAGE_TARGETS := $(addprefix package-,$(FILES))
define upload =
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval "(package-upload-file $1)"
endef
define upload-multi-file =
$(call upload,(car (sort (file-expand-wildcards \"$1/dist/*.tar\") #'string>)))
cp $1/dist/$1-readme.txt bin/
endef
package: $(PACKAGE_TARGETS) package-oni-conf package-oni-css package-oni-elisp \
2019-08-28 08:53:06 +02:00
package-oni-haml package-oni-html package-oni-nxml package-oni-org \
2020-03-03 02:59:42 +01:00
package-oni-php package-oni-python package-oni-ruby package-oni-twig \
package-oni-csharp
2019-03-28 08:53:55 +01:00
package-%: %
$(call upload,\"$^\")
2019-03-28 08:53:55 +01:00
package-oni-conf:
$(call upload-multi-file,oni-conf)
2019-08-24 08:39:07 +02:00
package-oni-css:
$(call upload-multi-file,oni-css)
2019-08-24 08:39:07 +02:00
2019-08-25 22:37:25 +02:00
package-oni-elisp:
$(call upload-multi-file,oni-elisp)
2019-08-25 22:37:25 +02:00
package-oni-haml:
$(call upload-multi-file,oni-haml)
2019-08-28 08:25:50 +02:00
package-oni-html:
$(call upload-multi-file,oni-html)
2019-08-28 08:25:50 +02:00
2019-08-28 08:34:58 +02:00
package-oni-nxml:
$(call upload-multi-file,oni-nxml)
2019-08-28 08:34:58 +02:00
2019-08-28 08:43:04 +02:00
package-oni-org:
$(call upload-multi-file,oni-org)
2019-08-28 08:43:04 +02:00
2019-08-28 08:53:06 +02:00
package-oni-php:
$(call upload-multi-file,oni-php)
2019-08-28 08:53:06 +02:00
2019-08-28 09:06:55 +02:00
package-oni-python:
$(call upload-multi-file,oni-python)
2019-08-28 09:06:55 +02:00
2019-08-28 09:09:30 +02:00
package-oni-ruby:
$(call upload-multi-file,oni-ruby)
2019-08-28 09:09:30 +02:00
package-oni-twig:
$(call upload-multi-file,oni-twig)
2020-03-03 02:59:42 +01:00
package-oni-csharp:
$(call upload-multi-file,oni-csharp)
install-%:
2019-03-28 08:53:55 +01:00
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval "(add-to-list 'package-archives '(\"test\" . \"$(TEST_ARCHIVE)\"))" \
2019-03-28 08:53:55 +01:00
--eval '(package-refresh-contents)' \
--eval "(package-install '$*)"
unit-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
integration-test-%: install-%
bats test/integration/$*.bats
2019-03-28 08:53:55 +01:00
clean:
rm -fv $(FILES)