summaryrefslogtreecommitdiff
path: root/Makefile
blob: d4366045e81160c2710fd035b90ec6d6651ac071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
EMACS ?= emacs

compile:
	cask exec $(EMACS) -Q -batch			\
	-L .						\
	--eval '(setq evil-want-integration nil)'	\
	--eval '(setq byte-compile-error-on-warn t)'	\
	-f batch-byte-compile *.el modes/*/*.el

lint:
	cask exec $(EMACS) -Q -batch							\
	--eval "(require 'package)"							\
	--eval "(push '(\"melpa\" . \"http://melpa.org/packages/\") package-archives)"	\
	--eval "(package-initialize)"							\
	--eval "(package-refresh-contents)"						\
	-l package-lint.el								\
	--eval "(advice-add 'package-lint--check-eval-after-load :around 'ignore)" \
	--eval "(advice-add 'package-lint--check-version-regexp-list :around 'ignore)" \
	-f package-lint-batch-and-exit *.el modes/*/*.el

test:
	cask exec ert-runner

.PHONY: compile lint test