branch: elpa/vm
commit 2634ac6f12f9e41670405e0f05f7ac32fa0c1b05
Author: Mark Diekhans <[email protected]>
Commit: Mark Diekhans <[email protected]>
added single target to run standard lints
---
Makefile.in | 10 +++++++---
dev/docs/releasing.org | 2 +-
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 88a9be0afc..8b3945ecd2 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -84,6 +84,11 @@ distclean:
#
PACKAGE_INIT = --eval "(progn (require 'package) (package-initialize))"
+# don't try to run in parallel as byte-compile-lint removes .elc files
+lint:
+ ${MAKE} byte-compile-lint
+ ${MAKE} native-compile-lint
+
# byte compile check
# Note: pgg is deprecated which also generated a warning, so can't generate
errors
byte-compile-lint:
@@ -104,9 +109,8 @@ native-compile-lint:
# check with build-in elint
elint-lint:
- $(EMACS_PROG) -batch -Q -l `pwd`/lisp \
- --eval '(mapc (lambda (f) (message "Checking %s" f) (elint-file f))
\
- (directory-files "lisp" t "\\.el$$"))'
+ $(EMACS_PROG) -batch -Q -L lisp \
+ --eval '(dolist (f (directory-files "lisp" t "\\.el$$")) (message
"Checking %s" f) (elint-file f))'
# check package file with external package-lint
package-lint:
diff --git a/dev/docs/releasing.org b/dev/docs/releasing.org
index 660d4d14df..1080c14944 100644
--- a/dev/docs/releasing.org
+++ b/dev/docs/releasing.org
@@ -19,7 +19,7 @@ package at https://elpa.nongnu.org/nongnu/vm.html
* check for unexpected warnings
- make -j 32 # needs generated files
-- make -j 32 byte-compile-lint native-compile-lint >&log
+- make -j 32 lint
* use package-lint to check vm.el packages
requires package-lint