From e347d805fe08deb4f5fcc6b97324d0d1c16b0505 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 15 Jan 2015 00:25:49 +0900 Subject: [PATCH] Makefile: Improve variable name --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50a6f8f..a4e26e7 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,18 @@ test_syntax_els = test-syntax-emacs.el test-syntax-el: $(test_syntax_els) .PHONY: $(test_syntax_els) +sexp_elisp_syntax_check = \ + (with-temp-buffer \ + (emacs-lisp-mode) \ + (insert-file-contents file) \ + (condition-case err \ + (check-parens) \ + (user-error \ + (error (format "%s:%d:%d:Unmatched brancet or quote" \ + file \ + (line-number-at-pos) \ + (- (point) (point-at-bol))))))) + $(test_syntax_els): test-syntax-%: % $(emacs) -Q --debug-init --batch \ - --eval '(with-temp-buffer(emacs-lisp-mode)(insert-file-contents "$<")(check-parens))' --kill + --eval '(let ((file "$<")) $(sexp_elisp_syntax_check))' --kill