summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFredrik Bergroth <fbergroth@gmail.com>2017-11-15 10:31:25 +0100
committerJames N <james@jojojames.com>2017-11-15 18:43:58 -0800
commit0b95617450359765a5a7617de54a4f57bb89a8db (patch)
treecad3a5dbaa6c8974b81258ff5561bf5253301ac8 /Makefile
parentb1f3c4288c2cf81404bb067a8b444db287c291b2 (diff)
Add lint target using package-lint
Diffstat (limited to 'Makefile')
-rwxr-xr-x[-rw-r--r--]Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b7c10ae..f1a3be8 100644..100755
--- a/Makefile
+++ b/Makefile
@@ -5,3 +5,12 @@ compile:
-L . \
--eval '(setq byte-compile-error-on-warn t)' \
-f batch-byte-compile *.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 \
+ -f package-lint-batch-and-exit *.el