Skip to content

Commit 71c82e9

Browse files
committed
Add compilation before testing
1 parent d35275b commit 71c82e9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ install: package
4242
--eval '(package-install-file "$(PACKAGE)")'
4343

4444
clean:
45-
## Cleans the dist directory.
46-
rm -rf dist
45+
## Cleans the dist directory and *.elc.
46+
rm -rf dist *.elc
4747

4848
test:
4949
## Tests the package.
50+
$(CASK) exec $(EMACS) --batch -q \
51+
--eval "(add-to-list 'load-path \""$(shell readlink -f .)"\")" \
52+
--eval "(add-to-list 'load-path \""$(shell readlink -f .)"/test\")" \
53+
-f batch-byte-compile \
54+
*.el
5055
$(CASK) exec $(EMACS) --batch -q \
5156
--eval "(add-to-list 'load-path \""$(shell readlink -f .)"\")" \
5257
--eval "(add-to-list 'load-path \""$(shell readlink -f .)"/test\")" \

0 commit comments

Comments
 (0)