branch: elpa/swift-mode commit 71c82e9b464c75dca52a8e3ab3a155b0e1a26931 Author: taku0 <mxxouy6x3m_git...@tatapa.org> Commit: taku0 <mxxouy6x3m_git...@tatapa.org>
Add compilation before testing --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b7039d4..abd9ad1 100644 --- a/Makefile +++ b/Makefile @@ -42,13 +42,18 @@ install: package --eval '(package-install-file "$(PACKAGE)")' clean: -## Cleans the dist directory. - rm -rf dist +## Cleans the dist directory and *.elc. + rm -rf dist *.elc test: ## Tests the package. $(CASK) exec $(EMACS) --batch -q \ --eval "(add-to-list 'load-path \""$(shell readlink -f .)"\")" \ --eval "(add-to-list 'load-path \""$(shell readlink -f .)"/test\")" \ + -f batch-byte-compile \ + *.el + $(CASK) exec $(EMACS) --batch -q \ + --eval "(add-to-list 'load-path \""$(shell readlink -f .)"\")" \ + --eval "(add-to-list 'load-path \""$(shell readlink -f .)"/test\")" \ -l test/swift-mode-test.el \ -f swift-mode:run-test